]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/tests/linked_list.rs
Enable full revision in const generics ui tests
[rust.git] / library / alloc / tests / linked_list.rs
index 5f5bd9af2fe5f37e9df1decce3fd4e8902208648..66a9cca6644c41481c65fb0521f5692e9baa0ca9 100644 (file)
@@ -302,10 +302,10 @@ fn test_ord_nan() {
 #[test]
 fn test_show() {
     let list: LinkedList<_> = (0..10).collect();
-    assert_eq!(format!("{:?}", list), "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]");
+    assert_eq!(format!("{list:?}"), "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]");
 
     let list: LinkedList<_> = ["just", "one", "test", "more"].into_iter().collect();
-    assert_eq!(format!("{:?}", list), "[\"just\", \"one\", \"test\", \"more\"]");
+    assert_eq!(format!("{list:?}"), "[\"just\", \"one\", \"test\", \"more\"]");
 }
 
 #[test]