Closed
Description
use std::ops::Deref;
struct S {
target$0: u8,
}
Applying the "Generate Deref
impl using target
" assist generates this:
impl std::ops::Deref for S {
type Target = u8;
fn deref(&self) -> &Self::Target {
&self.target
}
}
The std::ops::Deref
is unnecessarily qualified here, just Deref
would be enough. We have code that can automatically do this, should just be a matter of calling that.