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/thread.rs | |
| parent | 52050a5e1dcd613915135e217439bc6293bea257 (diff) | |
| download | mail-3f02ab97bea870111aa23c32291de129b824de89.tar.gz | |
add missing lifetime parameters
Diffstat (limited to 'src/thread.rs')
| -rw-r--r-- | src/thread.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/thread.rs b/src/thread.rs index 97b005a..ef6023d 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -5,6 +5,7 @@ use std::{ str, result }; +use std::sync::atomic::AtomicPtr; use std::ffi::{CString, CStr}; @@ -22,7 +23,7 @@ use Tags; #[derive(Debug)] pub struct Thread<'q, 'd:'q>( pub(crate) *mut ffi::notmuch_thread_t, - marker::PhantomData<&'q mut Query<'d>>, + marker::PhantomData<&'q Query<'d>>, ); impl<'q, 'd> NewFromPtr<*mut ffi::notmuch_thread_t> for Thread<'q, 'd> { @@ -115,4 +116,5 @@ impl<'q, 'd> ops::Drop for Thread<'q, 'd> { } } -unsafe impl<'q, 'd> Send for Thread<'q, 'd>{} +unsafe impl<'q, 'd> Send for Thread<'q, 'd> {} +// unsafe impl<'q, 'd> Sync for Thread<'q, 'd> {} |
