Skip to content

Commit 7ac2b74

Browse files
committed
refactor(agents): remove superfluous reference
`ua_instance` is borrowed but then immediately dereferenced by the compiler. <https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_borrow> Caught by Clippy.
1 parent 458141f commit 7ac2b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ua_generator/src/ua.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ mod tests {
564564
assert!(
565565
Rc::ptr_eq(
566566
agent3_rc,
567-
&ua_instance
567+
ua_instance
568568
.list_map
569569
.iter()
570570
.find_map(|(rc, _)| if **rc == "Agent3" { Some(rc) } else { None })

0 commit comments

Comments
 (0)