Skip to content

Commit

Permalink
fix: avoid a unwrap()
Browse files Browse the repository at this point in the history
Signed-off-by: tsukinaha <sakuovds@gmail.com>
  • Loading branch information
tsukinaha committed Dec 23, 2024
1 parent 547a7b2 commit 09bfb8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/widgets/filter_panel/search_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ mod imp {
#[upgrade_or]
true,
move |row| {
let filter = row.downcast_ref::<FilterRow>().unwrap();
let Some(filter) = row.downcast_ref::<FilterRow>() else {
return true;
};
filter
.name()
.to_lowercase()
Expand Down

0 comments on commit 09bfb8a

Please sign in to comment.