From d4f5e8eafcb5c6fa810e588171d28d2557856e04 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Mon, 9 Oct 2023 12:20:48 +0200 Subject: [PATCH 1/2] Ignore tests that depend on endianess --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index c8f0fa2..d2a7410 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -272,6 +272,7 @@ mod test { use crate::PathBuf; #[test] + #[cfg(target_endian = "little")] fn canonicalizes_git_urls() { let super::UrlDir { dir_name, canonical } = url_to_local_dir("git+https://github.com/EmbarkStudios/cpal.git?rev=d59b4de#d59b4decf72a96932a1482cc27fe4c0b50c40d32").unwrap(); @@ -321,6 +322,7 @@ mod test { } #[test] + #[cfg(target_endian = "little")] fn matches_cargo() { assert_eq!( get_index_details(crate::CRATES_IO_INDEX, Some(PathBuf::new())).unwrap(), From 2ae2ad7190e8f476eebed5f96cd506f0357edf14 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Mon, 9 Oct 2023 12:25:09 +0200 Subject: [PATCH 2/2] Fix lint --- tests/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/git.rs b/tests/git.rs index a9db8d0..7f5ff1c 100644 --- a/tests/git.rs +++ b/tests/git.rs @@ -131,7 +131,7 @@ impl TreeUpdateBuilder { i, Entry { mode: entry.mode, - oid: entry.oid.clone().into(), + oid: entry.oid.into(), filename: entry.filename.to_owned(), }, );