diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index 37d0e4f1d..369abe84b 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -7,7 +7,7 @@ const MINIMAL_FIELD_ELEMENTS_PER_BLOB: usize = 4; /// Compiles blst. // // NOTE: This code is taken from https://github.com/supranational/blst `build.rs` `main`. The crate -// is not used as a depedency to avoid double link issues on dependants. +// is not used as a dependency to avoid double link issues on dependants. fn compile_blst(blst_base_dir: PathBuf) { // account for cross-compilation [by examining environment variables] let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); diff --git a/bindings/rust/src/bindings/mod.rs b/bindings/rust/src/bindings/mod.rs index 93b52bd58..3eb14a4d0 100644 --- a/bindings/rust/src/bindings/mod.rs +++ b/bindings/rust/src/bindings/mod.rs @@ -148,7 +148,7 @@ impl KZGSettings { .as_os_str() .to_str() .ok_or(Error::InvalidTrustedSetup(format!( - "Unsuported non unicode file path" + "Unsupported non unicode file path" )))? .as_bytes() }; @@ -180,7 +180,7 @@ impl KZGSettings { }; // We don't really care if this succeeds. - let _uncheched_close_result = unsafe { libc::fclose(file_ptr) }; + let _unchecked_close_result = unsafe { libc::fclose(file_ptr) }; drop(file_path); result