pub struct UnnecessaryBracesFixGenerator;
Expand description
Generates fixes for unnecessary braces in imports
Implementations§
Trait Implementations§
Source§impl FixGenerator for UnnecessaryBracesFixGenerator
impl FixGenerator for UnnecessaryBracesFixGenerator
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 UnnecessaryBracesFixGenerator
impl RefUnwindSafe for UnnecessaryBracesFixGenerator
impl Send for UnnecessaryBracesFixGenerator
impl Sync for UnnecessaryBracesFixGenerator
impl Unpin for UnnecessaryBracesFixGenerator
impl UnwindSafe for UnnecessaryBracesFixGenerator
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