diff --git a/ext/node/path.rs b/ext/node/path.rs index f0ce52002d..71cc0741e3 100644 --- a/ext/node/path.rs +++ b/ext/node/path.rs @@ -3,7 +3,7 @@ use std::path::Component; use std::path::PathBuf; -/// Extenion to path_clean::PathClean +/// Extension to path_clean::PathClean pub trait PathClean { fn clean(&self) -> T; } @@ -22,8 +22,8 @@ impl PathClean for PathBuf { // skip } Component::ParentDir => { - let poped_component = components.pop(); - if !matches!(poped_component, Some(Component::Normal(_))) { + let maybe_last_component = components.pop(); + if !matches!(maybe_last_component, Some(Component::Normal(_))) { panic!("Error normalizing: {}", path.display()); } }