#![allow(clippy::match_like_matches_macro)]
#![allow(clippy::module_inception)]
#![allow(clippy::new_without_default)]
-#![allow(clippy::redundant_pattern_matching)]
#![allow(clippy::result_unit_err)]
#![allow(clippy::type_complexity)]
#![allow(clippy::upper_case_acronyms)]
} else if r.procedure == NFSPROC3_READ {
- let found = match self.get_file_tx_by_handle(&xidmap.file_handle, Direction::ToClient) {
- Some(_) => true,
- None => false,
- };
+ let found = self.get_file_tx_by_handle(&xidmap.file_handle, Direction::ToClient).is_some();
if !found {
let tx = self.new_file_tx(&xidmap.file_handle, &xidmap.file_name, Direction::ToClient);
tx.procedure = NFSPROC3_READ;