1
Fork 0

methods: allow &mut self for as_ methods

This commit is contained in:
Georg Brandl 2015-09-04 07:56:52 +02:00
parent 5b7ec55fc2
commit d659d039b6

View file

@ -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]),
];