Loading pkgs/build-support/node/fetch-npm-deps/src/cacache.rs +5 −4 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize}; use sha1::Sha1; use sha2::{Sha256, Sha512}; use std::{ fmt::Write as FmtWrite, fs::{self, File}, io::Write, path::PathBuf, Loading Loading @@ -78,10 +79,10 @@ impl Cache { push_hash_segments( &mut p, &hash .into_iter() .map(|n| format!("{n:02x}")) .collect::<String>(), &hash.into_iter().fold(String::new(), |mut out, n| { let _ = write!(out, "{n:02x}"); out }), ); p Loading pkgs/build-support/node/fetch-npm-deps/src/parse/lock.rs +1 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,7 @@ impl fmt::Display for Hash { } } #[allow(clippy::incorrect_partial_ord_impl_on_ord_type)] impl PartialOrd for Hash { fn partial_cmp(&self, other: &Hash) -> Option<Ordering> { let lhs = self.0.split_once('-')?.0; Loading Loading
pkgs/build-support/node/fetch-npm-deps/src/cacache.rs +5 −4 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize}; use sha1::Sha1; use sha2::{Sha256, Sha512}; use std::{ fmt::Write as FmtWrite, fs::{self, File}, io::Write, path::PathBuf, Loading Loading @@ -78,10 +79,10 @@ impl Cache { push_hash_segments( &mut p, &hash .into_iter() .map(|n| format!("{n:02x}")) .collect::<String>(), &hash.into_iter().fold(String::new(), |mut out, n| { let _ = write!(out, "{n:02x}"); out }), ); p Loading
pkgs/build-support/node/fetch-npm-deps/src/parse/lock.rs +1 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,7 @@ impl fmt::Display for Hash { } } #[allow(clippy::incorrect_partial_ord_impl_on_ord_type)] impl PartialOrd for Hash { fn partial_cmp(&self, other: &Hash) -> Option<Ordering> { let lhs = self.0.split_once('-')?.0; Loading