diff --git a/pwsp-gui/src/gui/views/body.rs b/pwsp-gui/src/gui/views/body.rs index fae49d5..0893543 100644 --- a/pwsp-gui/src/gui/views/body.rs +++ b/pwsp-gui/src/gui/views/body.rs @@ -316,9 +316,10 @@ impl SoundpadGui { .unwrap_or_default() .to_str() .unwrap_or_default(), - ) { - continue; - } + ) + { + continue; + } read.push(child_path); } } @@ -342,17 +343,16 @@ impl SoundpadGui { let search_query = search_query.trim(); for child in children { - if !child.is_dir() - && !search_query.is_empty() { - let file_name = child - .file_name() - .unwrap_or_default() - .to_string_lossy() - .to_string(); - if !file_name.to_lowercase().contains(search_query) { - continue; - } + if !child.is_dir() && !search_query.is_empty() { + let file_name = child + .file_name() + .unwrap_or_default() + .to_string_lossy() + .to_string(); + if !file_name.to_lowercase().contains(search_query) { + continue; } + } Self::draw_tree_node(ui, child, config, app_state, audio_player_state, actions); } });