From 3a44c47377043dec085a38bec6054e57b10204ac Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 10 Mar 2024 12:00:34 +0100 Subject: [PATCH] Fix clippy warnings --- src/session.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/session.rs b/src/session.rs index 41bd575..a321a1d 100644 --- a/src/session.rs +++ b/src/session.rs @@ -68,8 +68,6 @@ impl Session<'_> { where F: Fn(&str) -> bool + RefUnwindSafe, { - use std::str; - let boxed_filter: *mut F = p_arg as *mut F; let tbl_name = CStr::from_ptr(tbl_str).to_str(); c_int::from( @@ -694,8 +692,6 @@ where F: Fn(&str) -> bool + Send + RefUnwindSafe + 'static, C: Fn(ConflictType, ChangesetItem) -> ConflictAction + Send + RefUnwindSafe + 'static, { - use std::str; - let tuple: *mut (Option, C) = p_ctx as *mut (Option, C); let tbl_name = CStr::from_ptr(tbl_str).to_str(); match *tuple {