clippy: Use if lets and remove redundant returns

This commit is contained in:
Alan Du 2018-10-16 11:51:58 -04:00
parent 5db663d61f
commit d493a4476c
11 changed files with 22 additions and 29 deletions

View file

@ -42,7 +42,7 @@ pub fn dump_tree(syntax: SyntaxNodeRef) -> String {
writeln!(buf, "err: `{}`", err.msg).unwrap();
}
return buf;
buf
}
pub fn check_fuzz_invariants(text: &str) {