1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 15:07:47 +00:00

refactor/polish ~ fix cargo clippy complaints (map => if let)

This commit is contained in:
Roy Ivy III 2019-12-27 14:33:49 -06:00
parent 739c2d5793
commit 600c40490b

View file

@ -292,8 +292,8 @@ impl SubParser {
}
}
} else {
n_ch.map(|x| it.put_back(x));
preface.map(|x| it.put_back(x));
if let Some(x) = n_ch { it.put_back(x) };
if let Some(x) = preface { it.put_back(x) };
false
}
}