Explorar o código

Fix test that failed on rustc 1.45.0

Benjamin Sago %!s(int64=4) %!d(string=hai) anos
pai
achega
e906786b30
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dns/src/strings.rs

+ 1 - 1
dns/src/strings.rs

@@ -245,7 +245,7 @@ mod test {
             0xbf,  // label of length 191
         ];
 
-        buf.extend(&[0x65; 191]);  // the rest of the label
+        buf.extend(vec![0x65; 191]);  // the rest of the label
         buf.push(0x00);  // end reading
 
         assert_eq!(Cursor::new(&*buf).read_labels().unwrap().1, 193);