Struct selene_lib::lints::unused_variable::UnusedVariableLint
source · pub struct UnusedVariableLint { /* private fields */ }
Trait Implementations§
source§impl Lint for UnusedVariableLint
impl Lint for UnusedVariableLint
type Config = UnusedVariableConfig
type Error = Error
const SEVERITY: Severity = Severity::Warning
const LINT_TYPE: LintType = LintType::Style
fn new(config: Self::Config) -> Result<Self, Self::Error>
fn pass( &self, _: &Ast, context: &Context, ast_context: &AstContext ) -> Vec<Diagnostic>
Auto Trait Implementations§
impl Freeze for UnusedVariableLint
impl RefUnwindSafe for UnusedVariableLint
impl Send for UnusedVariableLint
impl Sync for UnusedVariableLint
impl Unpin for UnusedVariableLint
impl UnwindSafe for UnusedVariableLint
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