From d17d0d5d5675d90648ce4aa53514d5c66d252931 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 13 Feb 2025 07:30:20 +0300 Subject: [PATCH] lib.rs --- rust/main/utils/abigen/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/main/utils/abigen/src/lib.rs b/rust/main/utils/abigen/src/lib.rs index 3fe21a55bb..9476cb1578 100644 --- a/rust/main/utils/abigen/src/lib.rs +++ b/rust/main/utils/abigen/src/lib.rs @@ -79,7 +79,7 @@ pub fn generate_bindings( .as_ref() .file_name() .and_then(OsStr::to_str) - .expect("contract filename not is not valid unicode.") + .expect("contract filename is not valid unicode.") .split('.') .next() .expect("missing extension in path"); @@ -158,7 +158,7 @@ fn rustfmt_path() -> &'static Path { } else { // assume it is in PATH unsafe { - PATH = Some(which::which("rustmft").unwrap_or_else(|_| "rustfmt".into())); + PATH = Some(which::which("rustfmt").unwrap_or_else(|_| "rustfmt".into())); PATH.as_ref().unwrap() } }