summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 1468073..4d52ca3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,6 @@
use std::{
env,
ffi::OsStr,
- fs::File,
io::{self, Read, Write},
os::unix::ffi::OsStrExt,
path::Path,
@@ -69,8 +68,7 @@ pub fn run<R: Read, W: Write>(
let path = Path::new(OsStr::from_bytes(segment));
let normalized_path = normalizer.normalize(path)?;
- let file = File::open(normalized_path.absolute)?;
- renderer.render_file(&normalized_path.relative, file)?;
+ renderer.render_path(&normalized_path)?;
}
Ok(())
}