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