Skip to content

Commit b989bca

Browse files
committed
fix: pointer comparison warning
1 parent 9709ddb commit b989bca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

anyrun/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::{
44
io::{self, Write},
55
mem,
66
path::PathBuf,
7+
ptr,
78
rc::Rc,
89
sync::Once,
910
time::{Duration, SystemTime, UNIX_EPOCH},
@@ -1006,7 +1007,7 @@ fn refresh_matches(input: String, runtime_data: Rc<RefCell<RuntimeData>>) {
10061007
let runtime_data_clone = runtime_data.clone();
10071008
// If a plugin has requested exclusivity, respect it
10081009
if let Some(exclusive) = &runtime_data.borrow().exclusive {
1009-
if plugin_view.plugin.info() == exclusive.plugin.info() {
1010+
if ptr::fn_addr_eq(plugin_view.plugin.info(), exclusive.plugin.info()) {
10101011
glib::timeout_add_local(Duration::from_micros(1000), move || {
10111012
async_match(plugin_view.clone(), runtime_data_clone.clone(), id)
10121013
});

0 commit comments

Comments
 (0)