summaryrefslogtreecommitdiff
path: root/library/src/math/attach.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/attach.rs
parent56673bcdf5a8be0f89a3781a5ce392736823dc44 (diff)
clippy::wrong_self_convention (#857)
Diffstat (limited to 'library/src/math/attach.rs')
-rw-r--r--library/src/math/attach.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs
index 5b25a65c..c90b4945 100644
--- a/library/src/math/attach.rs
+++ b/library/src/math/attach.rs
@@ -191,18 +191,18 @@ fn scripts(
let mut frame = Frame::new(Size::new(width, ascent + descent));
frame.set_baseline(ascent);
- frame.push_frame(base_pos, base.to_frame());
+ frame.push_frame(base_pos, base.into_frame());
if let Some(sup) = sup {
let sup_pos =
Point::new(sup_delta + base_width, ascent - shift_up - sup.ascent());
- frame.push_frame(sup_pos, sup.to_frame());
+ frame.push_frame(sup_pos, sup.into_frame());
}
if let Some(sub) = sub {
let sub_pos =
Point::new(sub_delta + base_width, ascent + shift_down - sub.ascent());
- frame.push_frame(sub_pos, sub.to_frame());
+ frame.push_frame(sub_pos, sub.into_frame());
}
ctx.push(FrameFragment::new(ctx, frame).with_class(class));
@@ -245,17 +245,17 @@ fn limits(
let mut frame = Frame::new(Size::new(width, height));
frame.set_baseline(base_pos.y + base.ascent());
- frame.push_frame(base_pos, base.to_frame());
+ frame.push_frame(base_pos, base.into_frame());
if let Some(top) = top {
let top_pos = Point::with_x((width - top.width()) / 2.0 + delta);
- frame.push_frame(top_pos, top.to_frame());
+ frame.push_frame(top_pos, top.into_frame());
}
if let Some(bottom) = bottom {
let bottom_pos =
Point::new((width - bottom.width()) / 2.0 - delta, height - bottom.height());
- frame.push_frame(bottom_pos, bottom.to_frame());
+ frame.push_frame(bottom_pos, bottom.into_frame());
}
ctx.push(FrameFragment::new(ctx, frame).with_class(class));