Skip to content

Commit

Permalink
more clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xou816 committed May 29, 2023
1 parent ee86465 commit 104778e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/components/sidebar/sidebar_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,28 @@ impl SidebarItem {
_ => (dest.id(), None, dest.title()),
};
glib::Object::builder()
.property("id", &id)
.property("id", id)
.property("data", &data.unwrap_or_default())
.property("title", &title)
.property("navigatable", &true)
.property("navigatable", true)
.build()
}

pub fn playlists_section() -> Self {
glib::Object::builder()
.property("id", &SAVED_PLAYLISTS_SECTION)
.property("id", SAVED_PLAYLISTS_SECTION)
.property("data", &String::new())
.property("title", &gettext("All Playlists"))
.property("navigatable", &false)
.property("navigatable", false)
.build()
}

pub fn create_playlist_item() -> Self {
glib::Object::builder()
.property("id", &CREATE_PLAYLIST_ITEM)
.property("id", CREATE_PLAYLIST_ITEM)
.property("data", &String::new())
.property("title", &gettext("New Playlist"))
.property("navigatable", &false)
.property("navigatable", false)
.build()
}

Expand Down

0 comments on commit 104778e

Please sign in to comment.