Fix naming convention

This commit is contained in:
diquah 2025-05-02 16:58:45 -07:00
parent 69d0d9e26d
commit c8d45148f1
2 changed files with 5 additions and 6 deletions

View File

@ -478,7 +478,6 @@ pub fn commit(
if remaining < Abs::zero() && shrinkability > Abs::zero() {
// Attempt to reduce the length of the line, using shrinkability.
justification_ratio = (remaining / shrinkability).max(-1.0);
remaining = (remaining + shrinkability).min(Abs::zero());
} else if line.justify && fr.is_zero() {
// Attempt to increase the length of the line, using stretchability.

View File

@ -244,9 +244,9 @@ cast! {
Microtype,
self => Value::Dict(self.into()),
mut dict: Dict => {
let max_retract = dict.take("max_retract")?.cast()?;
let max_expand = dict.take("max_expand")?.cast()?;
dict.finish(&["max_retract", "max_expand"])?;
let max_retract = dict.take("max-retract")?.cast()?;
let max_expand = dict.take("max-expand")?.cast()?;
dict.finish(&["max-retract", "max-expand"])?;
Self { max_retract, max_expand }
},
}
@ -254,8 +254,8 @@ cast! {
impl From<Microtype> for Dict {
fn from(microtype: Microtype) -> Self {
dict! {
"max_retract" => microtype.max_retract,
"max_expand" => microtype.max_expand,
"max-retract" => microtype.max_retract,
"max-expand" => microtype.max_expand,
}
}
}