methods: allow &mut self for as_ methods
This commit is contained in:
parent
5b7ec55fc2
commit
d659d039b6
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ impl LintPass for MethodsPass {
|
||||||
const CONVENTIONS: [(&'static str, &'static [SelfKind]); 5] = [
|
const CONVENTIONS: [(&'static str, &'static [SelfKind]); 5] = [
|
||||||
("into_", &[ValueSelf]),
|
("into_", &[ValueSelf]),
|
||||||
("to_", &[RefSelf]),
|
("to_", &[RefSelf]),
|
||||||
("as_", &[RefSelf]),
|
("as_", &[RefSelf, RefMutSelf]),
|
||||||
("is_", &[RefSelf, NoSelf]),
|
("is_", &[RefSelf, NoSelf]),
|
||||||
("from_", &[NoSelf]),
|
("from_", &[NoSelf]),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue