pub struct UnusedVariableFixGenerator;
Expand description
Generates fixes for unused variable warnings
Implementations§
Trait Implementations§
Source§impl FixGenerator for UnusedVariableFixGenerator
impl FixGenerator for UnusedVariableFixGenerator
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 UnusedVariableFixGenerator
impl RefUnwindSafe for UnusedVariableFixGenerator
impl Send for UnusedVariableFixGenerator
impl Sync for UnusedVariableFixGenerator
impl Unpin for UnusedVariableFixGenerator
impl UnwindSafe for UnusedVariableFixGenerator
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