Skip to content

Commit

Permalink
Remove error if sidebar feature isn't enabled
Browse files Browse the repository at this point in the history
The types Sidebar and SidebarWithContent didn't have cfg attributes.
  • Loading branch information
43-21 committed Jul 18, 2024
1 parent 047b5a8 commit 5542d18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widgets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ pub type DropDown<'a, Overlay, Message, Renderer> =

#[cfg(feature = "sidebar")]
pub mod sidebar;
#[cfg(feature = "sidebar")]
/// A sidebar to show tabs on the side.
pub type Sidebar<'a, Message, TabId, Theme, Renderer> =
sidebar::Sidebar<'a, Message, TabId, Theme, Renderer>;
#[cfg(feature = "sidebar")]
/// A [`SidebarWithContent`] widget for showing a [`Sidebar`](super::sidebar::SideBar)
pub type SidebarWithContent<'a, Message, TabId, Theme, Renderer> =
sidebar::SidebarWithContent<'a, Message, TabId, Theme, Renderer>;

0 comments on commit 5542d18

Please sign in to comment.