X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Ftools%2Fclippy%2Ftests%2Fui%2Fbox_collection.rs;h=4c9947b9ae724d0bcd9b9fe6afefc7b83dc65734;hb=2b03887add1ca379893ea11d649eab442706f514;hp=0780c8f0586e0a4740754920ff3d783226b2d22f;hpb=f2b60f7d56372b42cd474522dab4a649f2c6f1a5;p=rustc.git diff --git a/src/tools/clippy/tests/ui/box_collection.rs b/src/tools/clippy/tests/ui/box_collection.rs index 0780c8f058..4c9947b9ae 100644 --- a/src/tools/clippy/tests/ui/box_collection.rs +++ b/src/tools/clippy/tests/ui/box_collection.rs @@ -15,7 +15,7 @@ macro_rules! boxit { } fn test_macro() { - boxit!(Vec::new(), Vec); + boxit!(vec![1], Vec); } fn test1(foo: Box>) {} @@ -50,7 +50,7 @@ fn test_local_not_linted() { pub fn pub_test(foo: Box>) {} pub fn pub_test_ret() -> Box> { - Box::new(Vec::new()) + Box::default() } fn main() {}