From ed50bef4947c739032f7282054cd41103e9d1192 Mon Sep 17 00:00:00 2001 From: "C. Morgan Hamill" Date: Thu, 26 Mar 2015 14:58:22 -0400 Subject: Disable trivial_numeric_casts lint in FFI callback. We're casting from `c_double` to `f64`, which are the same thing, but I want to do it anyway to be explicit. --- src/database.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/database.rs b/src/database.rs index d082f3a..b046600 100644 --- a/src/database.rs +++ b/src/database.rs @@ -128,6 +128,7 @@ impl Database { fn _upgrade(&mut self, status: Option) -> Result<()> { + #[allow(trivial_numeric_casts)] extern fn wrapper( closure: *mut libc::c_void, progress: libc::c_double, ) { -- cgit v1.2.1