From 0d8c02cafcb2d9704bfbd295c59797b2b0683303 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Sun, 29 Nov 2020 19:33:49 +0100 Subject: [PATCH] fix typo --- src/config.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index b6e6727..f68410b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -31,7 +31,7 @@ pub enum Transcode { } impl Transcode { - pub fn extention(&self) -> &'static str { + pub fn extension(&self) -> &'static str { match self { Transcode::Opus { .. } => "opus", } diff --git a/src/main.rs b/src/main.rs index a3e8dfa..8fa6c5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ fn get_path_pairs(config: Config) -> impl Iterator { }; let mut to = config.to.join(e.path().strip_prefix(&config.from).unwrap()); - to.set_extension(transcode.extention()); + to.set_extension(transcode.extension()); let is_newer = { // TODO: error handling