Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtau committed Mar 22, 2024
1 parent 9c91b92 commit 1e5ddc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fn add_rules_to_select(mut rules: Vec<&str>) {
.unwrap_throw();
select.append_child(&option).unwrap_throw();

if let Some(ref text) = unsafe { &LAST_SELECTION } {
if let Some(text) = unsafe { LAST_SELECTION.as_ref() } {
if text == rule {
option.set_selected(true);
}
Expand Down

0 comments on commit 1e5ddc1

Please sign in to comment.