summaryrefslogtreecommitdiff
path: root/library/src/math/stretch.rs
diff options
context:
space:
mode:
authorMarek Barvíř <barvirm@gmail.com>2023-04-18 11:19:16 +0200
committerGitHub <noreply@github.com>2023-04-18 11:19:16 +0200
commitdd5e9723e09b60799277b44dcd446bccc0ab771e (patch)
tree2fc4d71844dc3daa80722c18ab3aa235346abe3c /library/src/math/stretch.rs
parent56673bcdf5a8be0f89a3781a5ce392736823dc44 (diff)
clippy::wrong_self_convention (#857)
Diffstat (limited to 'library/src/math/stretch.rs')
-rw-r--r--library/src/math/stretch.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/math/stretch.rs b/library/src/math/stretch.rs
index 7ba6e5c1..226f3f4e 100644
--- a/library/src/math/stretch.rs
+++ b/library/src/math/stretch.rs
@@ -57,7 +57,7 @@ fn stretch_glyph(
// If the base glyph is good enough, use it.
let advance = if horizontal { base.width } else { base.height() };
if short_target <= advance {
- return base.to_variant();
+ return base.into_variant();
}
// Search for a pre-made variant with a good advance.
@@ -73,7 +73,7 @@ fn stretch_glyph(
// This is either good or the best we've got.
if short_target <= best_advance || construction.assembly.is_none() {
- return GlyphFragment::with_id(ctx, base.c, best_id, base.span).to_variant();
+ return GlyphFragment::with_id(ctx, base.c, best_id, base.span).into_variant();
}
// Assemble from parts.
@@ -169,7 +169,7 @@ fn assemble(
} else {
Point::with_y(full - offset - fragment.height())
};
- frame.push_frame(pos, fragment.to_frame());
+ frame.push_frame(pos, fragment.into_frame());
offset += advance;
}