Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Dec 18, 2023
1 parent 9504405 commit c918396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/sliderbar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ impl Sandbox for SlideBarExample {
.push(
Text::new(format!("Value is {}", self.value))
.width(Length::Fill)
.vertical_alignment(iced::alignment::Vertical::Center).horizontal_alignment(iced::alignment::Horizontal::Center),
.vertical_alignment(iced::alignment::Vertical::Center)
.horizontal_alignment(iced::alignment::Horizontal::Center),
)
.push(bar)
.align_items(iced::Alignment::Center);
Expand Down
4 changes: 3 additions & 1 deletion src/native/color_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ where
}

fn layout(&self, tree: &mut Tree, renderer: &Renderer<Theme>, limits: &Limits) -> Node {
self.underlay.as_widget().layout(&mut tree.children[0], renderer, limits)
self.underlay
.as_widget()
.layout(&mut tree.children[0], renderer, limits)
}

fn on_event(
Expand Down

0 comments on commit c918396

Please sign in to comment.