pub struct UnnecessaryCloneFixGenerator;
Expand description
Generates fixes for unnecessary clone() calls
Implementations§
Trait Implementations§
Source§impl FixGenerator for UnnecessaryCloneFixGenerator
impl FixGenerator for UnnecessaryCloneFixGenerator
Source§fn generate_fix(
&self,
_error: &DecrustError,
_params: &ExtractedParameters,
source_code_context: Option<&str>,
) -> Option<Autocorrection>
fn generate_fix( &self, _error: &DecrustError, _params: &ExtractedParameters, source_code_context: Option<&str>, ) -> Option<Autocorrection>
Generates a fix for an error using extracted parameters
Auto Trait Implementations§
impl Freeze for UnnecessaryCloneFixGenerator
impl RefUnwindSafe for UnnecessaryCloneFixGenerator
impl Send for UnnecessaryCloneFixGenerator
impl Sync for UnnecessaryCloneFixGenerator
impl Unpin for UnnecessaryCloneFixGenerator
impl UnwindSafe for UnnecessaryCloneFixGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more