From 6bbb4c3af60d568a34e1472a0721ddd8a3dab469 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Mon, 27 Feb 2023 21:26:02 +0100 Subject: chore(ext/node): fix variable name (#17948) --- ext/node/path.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/node') 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 { 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()); } } -- cgit v1.2.3