diff options
| -rw-r--r-- | examples/bezier_tool/src/main.rs | 13 | 
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index a00a1005..5473bc07 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -1,7 +1,6 @@  //! This example showcases an interactive `Canvas` for drawing Bézier curves.  use iced::{ -    button, Align, Button, Column, Container, Element, Length, Sandbox, -    Settings, Text, +    button, Align, Button, Column, Element, Length, Sandbox, Settings, Text,  };  pub fn main() { @@ -49,7 +48,7 @@ impl Sandbox for Example {      }      fn view(&mut self) -> Element<Message> { -        let content = Column::new() +        Column::new()              .padding(20)              .spacing(20)              .align_items(Align::Center) @@ -63,13 +62,7 @@ impl Sandbox for Example {                  Button::new(&mut self.button_state, Text::new("Clear"))                      .padding(8)                      .on_press(Message::Clear), -            ); - -        Container::new(content) -            .width(Length::Fill) -            .height(Length::Fill) -            .center_x() -            .center_y() +            )              .into()      }  }  | 
