瀏覽代碼

Fix test that failed on rustc 1.45.0

Benjamin Sago 4 年之前
父節點
當前提交
e906786b30
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);