diff options
author | 2022-02-16 17:51:03 +0700 | |
---|---|---|
committer | 2022-02-16 18:19:37 +0700 | |
commit | 0aff444941f8b44b5a996dde4810ba6313f43a7e (patch) | |
tree | 9fc090eaf14211726263c76977798def0846618f /examples | |
parent | 8b5c9dfa71f770281ca277163c320571c39ee572 (diff) | |
download | iced-0aff444941f8b44b5a996dde4810ba6313f43a7e.tar.gz iced-0aff444941f8b44b5a996dde4810ba6313f43a7e.tar.bz2 iced-0aff444941f8b44b5a996dde4810ba6313f43a7e.zip |
Rename `Image::fit` to `content_fit`
... just for consistency!
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tour/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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() |