diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-12-14 18:45:20 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-12-14 18:45:20 +0100 |
| commit | 4b19b951dd2fb7aa7bc662170c91401f2e8fac3b (patch) | |
| tree | 5b436865f4ae78a90129147e1a0fd8b53b2746b2 /src/filenames.rs | |
| parent | 022fb6eebf7774b19a1e1b3c6cee7bd7e1b75cd9 (diff) | |
| download | mail-4b19b951dd2fb7aa7bc662170c91401f2e8fac3b.tar.gz | |
remove StreamingIterator again as the iterators don't actually have ownership over items
Diffstat (limited to 'src/filenames.rs')
| -rw-r--r-- | src/filenames.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filenames.rs b/src/filenames.rs index ad4c3e9..ce06289 100644 --- a/src/filenames.rs +++ b/src/filenames.rs @@ -6,6 +6,7 @@ use std::path::PathBuf; use supercow::Phantomcow; use crate::ffi; +use crate::utils::ScopedPhantomcow; pub trait FilenamesOwner {} @@ -30,7 +31,7 @@ where O: FilenamesOwner, { pub(crate) handle: FilenamesPtr, - pub(crate) marker: Phantomcow<'o, O>, + pub(crate) marker: ScopedPhantomcow<'o, O>, } impl<'o, O> Filenames<'o, O> @@ -39,7 +40,7 @@ where { pub fn from_ptr<P>(ptr: *mut ffi::notmuch_filenames_t, owner: P) -> Filenames<'o, O> where - P: Into<Phantomcow<'o, O>>, + P: Into<ScopedPhantomcow<'o, O>>, { Filenames { handle: FilenamesPtr { ptr }, |
