diff options
| author | C. Morgan Hamill <me@cmhamill.org> | 2015-03-26 19:58:22 +0100 |
|---|---|---|
| committer | C. Morgan Hamill <me@cmhamill.org> | 2015-03-26 19:58:22 +0100 |
| commit | ed50bef4947c739032f7282054cd41103e9d1192 (patch) | |
| tree | f2d74ab31fc87a24020ff3a59fcab3859cf4dab1 /src/database.rs | |
| parent | e4523dd5d6e2fe3f9afa99671baadfdf8eef5385 (diff) | |
| download | mail-ed50bef4947c739032f7282054cd41103e9d1192.tar.gz | |
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.
Diffstat (limited to 'src/database.rs')
| -rw-r--r-- | src/database.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<F: FnMut(f64)>(&mut self, status: Option<F>) -> Result<()> { + #[allow(trivial_numeric_casts)] extern fn wrapper<F: FnMut(f64)>( closure: *mut libc::c_void, progress: libc::c_double, ) { |
