diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2023-02-27 21:26:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 21:26:02 +0100 |
commit | 6bbb4c3af60d568a34e1472a0721ddd8a3dab469 (patch) | |
tree | 4efd3daa3628fd9351597ffebc671b9ed0b95a18 /ext/node/path.rs | |
parent | c6c747873f20c96c59393dd4d8f6a89e10ffb700 (diff) |
chore(ext/node): fix variable name (#17948)
Diffstat (limited to 'ext/node/path.rs')
-rw-r--r-- | ext/node/path.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/path.rs b/ext/node/path.rs index f0ce52002..71cc0741e 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<T> { fn clean(&self) -> T; } @@ -22,8 +22,8 @@ impl PathClean<PathBuf> 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()); } } |