From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/icu_locid/tests/langid.rs | 4 ++-- vendor/icu_locid/tests/locale.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vendor/icu_locid/tests') diff --git a/vendor/icu_locid/tests/langid.rs b/vendor/icu_locid/tests/langid.rs index 60414e087..ee7bb9817 100644 --- a/vendor/icu_locid/tests/langid.rs +++ b/vendor/icu_locid/tests/langid.rs @@ -124,7 +124,7 @@ fn test_langid_normalizing_eq_str() { helpers::read_fixture(path).expect("Failed to read a fixture"); for test in tests { let parsed: LanguageIdentifier = test.input.try_into().expect("Parsing failed."); - assert!(parsed.normalizing_eq(&*parsed.write_to_string())); + assert!(parsed.normalizing_eq(&parsed.write_to_string())); } // Check that trailing characters are not ignored @@ -152,7 +152,7 @@ fn test_langid_strict_cmp() { let a_normalized = a_langid.write_to_string(); let string_cmp = a_normalized.as_bytes().cmp(b.as_bytes()); let test_cmp = a_langid.strict_cmp(b.as_bytes()); - assert_eq!(string_cmp, test_cmp, "{:?}/{:?}", a, b); + assert_eq!(string_cmp, test_cmp, "{a:?}/{b:?}"); } } } diff --git a/vendor/icu_locid/tests/locale.rs b/vendor/icu_locid/tests/locale.rs index cd3448983..9cb320ad9 100644 --- a/vendor/icu_locid/tests/locale.rs +++ b/vendor/icu_locid/tests/locale.rs @@ -85,7 +85,7 @@ fn test_locale_normalizing_eq_str() { helpers::read_fixture(path).expect("Failed to read a fixture"); for test in tests { let parsed: Locale = test.input.try_into().expect("Parsing failed."); - assert!(parsed.normalizing_eq(&*parsed.write_to_string())); + assert!(parsed.normalizing_eq(&parsed.write_to_string())); } // Check that trailing characters are not ignored @@ -104,7 +104,7 @@ fn test_locale_strict_cmp() { fixtures::LocaleInfo::Identifier(ref s) => s.identifier.as_str(), _ => match t.output { fixtures::LocaleInfo::Identifier(ref s) => s.identifier.as_str(), - _ => panic!("No string in fixture input or output: {:?}", t), + _ => panic!("No string in fixture input or output: {t:?}"), }, }) .collect::>(); @@ -114,7 +114,7 @@ fn test_locale_strict_cmp() { let a_normalized = a_langid.write_to_string(); let string_cmp = a_normalized.as_bytes().cmp(b.as_bytes()); let test_cmp = a_langid.strict_cmp(b.as_bytes()); - assert_eq!(string_cmp, test_cmp, "{:?}/{:?}", a, b); + assert_eq!(string_cmp, test_cmp, "{a:?}/{b:?}"); } } } -- cgit v1.2.3