clippy fixes
This commit is contained in:
parent
a4e56e8d58
commit
f6b0754570
8 changed files with 49 additions and 75 deletions
5
build.rs
5
build.rs
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::needless_return)]
|
||||
|
||||
use anyhow::*;
|
||||
use fs_extra::copy_items;
|
||||
use fs_extra::dir::CopyOptions;
|
||||
|
@ -9,8 +11,7 @@ fn main() -> Result<()> {
|
|||
let out_dir = env::var("OUT_DIR")?;
|
||||
let mut copy_options = CopyOptions::new();
|
||||
copy_options.overwrite = true;
|
||||
let mut paths_to_copy = Vec::new();
|
||||
paths_to_copy.push("res/");
|
||||
let paths_to_copy = vec!["res/"];
|
||||
copy_items(&paths_to_copy, out_dir, ©_options)?;
|
||||
|
||||
return Ok(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue