summaryrefslogtreecommitdiffstats
path: root/vendor/icu_locid/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/icu_locid/tests')
-rw-r--r--vendor/icu_locid/tests/langid.rs4
-rw-r--r--vendor/icu_locid/tests/locale.rs6
2 files changed, 5 insertions, 5 deletions
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::<Vec<&str>>();
@@ -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:?}");
}
}
}