From 931d0c26007343b87c7dcfd4bc15c27d086ac3fe Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Tue, 15 Sep 2020 13:22:22 -0400 Subject: [PATCH] fix warning and use implicit return here --- cli/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/build.rs b/cli/build.rs index deba4381..47506018 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -1,6 +1,5 @@ use std::path::{Path, PathBuf}; use std::{env, fs}; -use std::vec::Vec; fn main() { if let Some(git_sha) = read_git_sha() { @@ -23,7 +22,7 @@ fn wasm_files_present() -> bool { "../lib/binding_web/tree-sitter.wasm", ]; - return paths.iter().all(|p| Path::new(p).exists()) + paths.iter().all(|p| Path::new(p).exists()) } fn read_git_sha() -> Option {