mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
Merge pull request #298 from birkenfeld/as_mut
methods: allow &mut self for as_ methods
This commit is contained in:
commit
af4d7f9b60
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ impl LintPass for MethodsPass {
|
|||
const CONVENTIONS: [(&'static str, &'static [SelfKind]); 5] = [
|
||||
("into_", &[ValueSelf]),
|
||||
("to_", &[RefSelf]),
|
||||
("as_", &[RefSelf]),
|
||||
("as_", &[RefSelf, RefMutSelf]),
|
||||
("is_", &[RefSelf, NoSelf]),
|
||||
("from_", &[NoSelf]),
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue