mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
clippy fixes
This commit is contained in:
parent
0ba5b3cfc6
commit
f3f6f58d09
5 changed files with 6 additions and 11 deletions
|
@ -55,8 +55,7 @@ fn flatten_directories(files: std::vec::Vec<PathBuf>) -> std::vec::Vec<PathBuf>
|
|||
}
|
||||
|
||||
fn is_roc_file(path: &Path) -> bool {
|
||||
let ext = path.extension().and_then(OsStr::to_str);
|
||||
return matches!(ext, Some("roc"));
|
||||
matches!(path.extension().and_then(OsStr::to_str), Some("roc"))
|
||||
}
|
||||
|
||||
pub fn format(files: std::vec::Vec<PathBuf>, mode: FormatMode) -> Result<(), String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue