Skip to content

Commit 3bb58fa

Browse files
author
Hugo Osvaldo Barrera
committed
Avoid redundant clone()
The original value is dropped without further usage.
1 parent 19a60c4 commit 3bb58fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

alpm/examples/callbacks.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ fn main() {
4444
handle
4545
.register_syncdb("community", SigLevel::USE_DEFAULT)
4646
.unwrap();
47+
48+
println!("final value of number was: {}", number.borrow())
4749
}

0 commit comments

Comments
 (0)