Closed chachaleo closed 2 months ago
Resolves: #108
Addition of lint : manual_expect
manual_expect
One of the case fixed introduces an unused import if panic_with_felt252 is not used somewhere else in the file :
panic_with_felt252
use core::panic_with_felt252; fn main() { let foo: Option::<i32> = Option::None; let _foo = match foo { Option::Some(x) => x, Option::None => panic_with_felt252('err'), }; }
is fixed to
use core::panic_with_felt252; //unused import fn main() { let foo: Option::<i32> = Option::None; let _foo = foo.expect('err'); }
Let me know if I should deal with this in this PR or open a new one
Resolves: #108
Addition of lint :
manual_expect
note :
One of the case fixed introduces an unused import if
panic_with_felt252
is not used somewhere else in the file :is fixed to
Let me know if I should deal with this in this PR or open a new one