Open chachaleo opened 2 months ago
Manual lint fails when the expression in the ExprMatch is a function
ExprMatch
Example :
#[derive(Copy, Drop)] enum Error { Error, } fn main() { let self: u256 = 0; let _self_result: Result<u8, Error> = match self.try_into() { Option::Some(value) => Result::Ok(value), Option::None => Result::Err(Error::Error) }; }
panics with Expected a variable or path in match expression, because self.try_into() is a function and the lint does not support it currently in the fix function
self.try_into()
fix
Manual lint fails when the expression in the
ExprMatch
is a functionExample :
panics with Expected a variable or path in match expression, because
self.try_into()
is a function and the lint does not support it currently in thefix
function