pub struct UnnecessaryParenthesesFixGenerator;Expand description
Generates fixes for unnecessary parentheses in import statements
Implementations§
Source§impl UnnecessaryParenthesesFixGenerator
impl UnnecessaryParenthesesFixGenerator
Sourcepub fn new() -> UnnecessaryParenthesesFixGenerator
pub fn new() -> UnnecessaryParenthesesFixGenerator
Creates a new UnnecessaryParenthesesFixGenerator
Trait Implementations§
Source§impl FixGenerator for UnnecessaryParenthesesFixGenerator
impl FixGenerator for UnnecessaryParenthesesFixGenerator
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 UnnecessaryParenthesesFixGenerator
impl RefUnwindSafe for UnnecessaryParenthesesFixGenerator
impl Send for UnnecessaryParenthesesFixGenerator
impl Sync for UnnecessaryParenthesesFixGenerator
impl Unpin for UnnecessaryParenthesesFixGenerator
impl UnwindSafe for UnnecessaryParenthesesFixGenerator
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