diff --git a/src/methods.rs b/src/methods.rs index 254352743..4f64f0f7a 100644 --- a/src/methods.rs +++ b/src/methods.rs @@ -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]), ];