aboutsummaryrefslogtreecommitdiff
path: root/src/fileutil.rs
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2020-02-04 20:31:51 +0100
committerHristo Venev <hristo@venev.name>2020-02-04 20:31:51 +0100
commitc4f743e2a33ba39036f7e9919b7adc80415b1754 (patch)
treec708bbc6e089a1b66c61d189a010cb2a80aa0a34 /src/fileutil.rs
parent3f5c00af303c1b706a74cafa58ff23b068f6d819 (diff)
Reference preshared keys by path.
Diffstat (limited to 'src/fileutil.rs')
-rw-r--r--src/fileutil.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fileutil.rs b/src/fileutil.rs
index c124fae..b138955 100644
--- a/src/fileutil.rs
+++ b/src/fileutil.rs
@@ -24,11 +24,6 @@ impl Drop for Temp {
impl Temp {
#[inline]
- pub fn path(&self) -> &Path {
- &*self.path
- }
-
- #[inline]
pub fn leave(mut self) -> PathBuf {
mem::replace(&mut self.path, PathBuf::new())
}
@@ -67,7 +62,7 @@ impl Writer {
#[inline]
pub fn sync_done(self) -> io::Result<Temp> {
self.file.sync_data()?;
- Ok(self.inner)
+ Ok(self.done())
}
#[inline]