diff --git a/mruby/src/convert.rs b/mruby/src/convert.rs index b8c05eb3..a9fe7b18 100644 --- a/mruby/src/convert.rs +++ b/mruby/src/convert.rs @@ -43,15 +43,12 @@ where /// Provide a falible converter for types that implement an infallible /// conversion. -// Lint disabled because the suggestion does not compile. -// See: https://github.com/rust-lang/rust-clippy/issues/4140 -#[allow(clippy::use_self)] impl TryFromMrb for To where To: FromMrb, { - type From = To::From; - type To = To::To; + type From = >::From; + type To = >::To; unsafe fn try_from_mrb(interp: &Mrb, value: From) -> Result> { Ok(FromMrb::from_mrb(interp, value))