Skip to content

Commit 04d9bb2

Browse files
committed
remove clippy error
1 parent 78f29ee commit 04d9bb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/r2d2.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@ mod test {
150150
let pool1 = pool.clone();
151151
let t1 = thread::spawn(move || {
152152
let conn = pool1.get().unwrap();
153-
let conn1: &Connection = &*conn;
154153
s1.send(()).unwrap();
155154
r2.recv().unwrap();
156-
drop(conn1);
155+
drop(conn);
157156
});
158157

159158
let pool2 = pool.clone();

0 commit comments

Comments
 (0)