Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Jan 12, 2024
1 parent 205d4d9 commit d3762c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/tabs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ impl Application for TabBarExample {
.clone()
.unwrap_or_default();

Tabs::new(Message::TabSelected).tab_icon_position(iced_aw::tabs::Position::Bottom)
Tabs::new(Message::TabSelected)
.tab_icon_position(iced_aw::tabs::Position::Bottom)
.push(
TabId::Login,
state.login_tab.tab_label(),
Expand Down
7 changes: 5 additions & 2 deletions src/native/tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//! *This API requires the following crate features to be activated: tabs*
pub mod tab_bar_position;
use crate::{native::tab_bar::TabBar, style::tab_bar::StyleSheet, TabLabel};
pub use crate::tab_bar::Position;
use crate::{native::tab_bar::TabBar, style::tab_bar::StyleSheet, TabLabel};

use iced_widget::{
core::{
Expand Down Expand Up @@ -197,7 +197,10 @@ where
where
E: Into<Element<'a, Message, Renderer>>,
{
self.tab_bar = self.tab_bar.push(id.clone(), tab_label).set_position(self.tab_icon_position);
self.tab_bar = self
.tab_bar
.push(id.clone(), tab_label)
.set_position(self.tab_icon_position);
self.tabs.push(element.into());
self.indices.push(id);
self
Expand Down

0 comments on commit d3762c0

Please sign in to comment.