Apply cargo clippy suggestions
This commit is contained in:
@@ -210,7 +210,7 @@ impl ContextMenu {
|
||||
let dialog = Dialog::new()
|
||||
.title(format!(
|
||||
"Select action for artist: {}",
|
||||
artist.clone().name.as_str()
|
||||
artist.name.as_str()
|
||||
))
|
||||
.dismiss_button("Cancel")
|
||||
.padding(Margins::lrtb(1, 1, 1, 0))
|
||||
|
||||
@@ -62,12 +62,7 @@ impl LibraryView {
|
||||
Self {
|
||||
tabs: tabview,
|
||||
display_name: {
|
||||
let hide_username = library
|
||||
.cfg
|
||||
.values()
|
||||
.hide_display_names
|
||||
.clone()
|
||||
.unwrap_or(false);
|
||||
let hide_username = library.cfg.values().hide_display_names.unwrap_or(false);
|
||||
if hide_username {
|
||||
None
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user