From 0aff444941f8b44b5a996dde4810ba6313f43a7e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 16 Feb 2022 17:51:03 +0700 Subject: Rename `Image::fit` to `content_fit` ... just for consistency! --- examples/tour/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/tour/src/main.rs') diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 63062e7c..0c61add0 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -748,7 +748,7 @@ fn ferris<'a>(width: u16) -> Container<'a, StepMessage> { )) } .width(Length::Units(width)) - .fit(ContentFit::Contain), + .content_fit(ContentFit::Contain), ) .width(Length::Fill) .center_x() @@ -769,7 +769,7 @@ fn logo<'a>(height: u16, fit: ContentFit) -> Container<'a, StepMessage> { } .width(Length::Fill) .height(Length::Units(height)) - .fit(fit), + .content_fit(fit), ) .width(Length::Fill) .center_x() -- cgit