Skip to content

Commit 610df05

Browse files
committed
Make ptr_arg lint warn by default
1 parent cf1e83b commit 610df05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ptr_arg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Checks for usage of &Vec[_] and &String
22
//!
3-
//! This lint is **allow** by default
3+
//! This lint is **warn** by default
44
55
use rustc::lint::*;
66
use rustc_front::hir::*;
@@ -11,7 +11,7 @@ use utils::{STRING_PATH, VEC_PATH};
1111

1212
declare_lint! {
1313
pub PTR_ARG,
14-
Allow,
14+
Warn,
1515
"fn arguments of the type `&Vec<...>` or `&String`, suggesting to use `&[...]` or `&str` \
1616
instead, respectively"
1717
}

0 commit comments

Comments
 (0)