From dd5e9723e09b60799277b44dcd446bccc0ab771e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Barv=C3=AD=C5=99?= Date: Tue, 18 Apr 2023 11:19:16 +0200 Subject: clippy::wrong_self_convention (#857) --- library/src/math/attach.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'library/src/math/attach.rs') 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)); -- cgit v1.2.3