aboutsummaryrefslogtreecommitdiff
path: root/src/fileutil.rs
diff options
context:
space:
mode:
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]