diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-30 10:14:45 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-30 10:14:45 -0600 |
| commit | 86cfef51cf89d43bbeefa9a06ba1f80ef8e8ab15 (patch) | |
| tree | 24dc138118c7e3113ed0e20606bde49dd26a44e8 /src/fuse/mod.rs | |
| parent | 12d155fa231c66bd0ba29c8455671fcf8af10a73 (diff) | |
Fix use semantics of Incoming<'o, O>::owned()
Lifetime requirements involving Done<'o> previously prevented any
proper use of Owned<O>.
Diffstat (limited to '')
| -rw-r--r-- | src/fuse/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fuse/mod.rs b/src/fuse/mod.rs index 5a4a7af..b4c31d0 100644 --- a/src/fuse/mod.rs +++ b/src/fuse/mod.rs @@ -38,10 +38,14 @@ pub struct Reply<'o, O: Operation<'o>> { #[must_use] #[doc(cfg(feature = "server"))] -pub struct Done<'o>(PhantomData<*mut &'o ()>); +pub struct Done<'o>(PhantomData<&'o mut &'o ()>); impl Done<'_> { fn done() -> Self { Done(PhantomData) } + + fn consume(self) { + drop(self); + } } |
