diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-04-13 18:51:55 +0200 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-04-13 18:51:55 +0200 |
| commit | 3f02ab97bea870111aa23c32291de129b824de89 (patch) | |
| tree | 598fb2aab59a34976278b06725b9384040edf15b /src/filenames.rs | |
| parent | 52050a5e1dcd613915135e217439bc6293bea257 (diff) | |
| download | mail-3f02ab97bea870111aa23c32291de129b824de89.tar.gz | |
add missing lifetime parameters
Diffstat (limited to 'src/filenames.rs')
| -rw-r--r-- | src/filenames.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/filenames.rs b/src/filenames.rs index 0d32bd6..30367a9 100644 --- a/src/filenames.rs +++ b/src/filenames.rs @@ -22,7 +22,7 @@ use ffi; #[derive(Debug)] pub struct Filenames<'d>( *mut ffi::notmuch_filenames_t, - marker::PhantomData<&'d mut database::Database>, + marker::PhantomData<&'d database::Database>, ); impl<'d> NewFromPtr<*mut ffi::notmuch_filenames_t> for Filenames<'d> { @@ -32,7 +32,7 @@ impl<'d> NewFromPtr<*mut ffi::notmuch_filenames_t> for Filenames<'d> { } impl<'d> ops::Drop for Filenames<'d> { - fn drop(&mut self) { + fn drop(self: &mut Self) { unsafe { ffi::notmuch_filenames_destroy(self.0) }; @@ -42,7 +42,7 @@ impl<'d> ops::Drop for Filenames<'d> { impl<'d> iter::Iterator for Filenames<'d> { type Item = PathBuf; - fn next(&mut self) -> Option<Self::Item> { + fn next(self: &mut Self) -> Option<Self::Item> { let valid = unsafe { ffi::notmuch_filenames_valid(self.0) @@ -64,3 +64,4 @@ impl<'d> iter::Iterator for Filenames<'d> { unsafe impl<'d> Send for Filenames<'d>{} +// unsafe impl<'d> Sync for Filenames<'d>{} |
