Fix clippy warnings: remove needless borrows in build.rs
This commit is contained in:
parent
bd31410d5a
commit
dd11072560
4
build.rs
4
build.rs
@ -105,11 +105,11 @@ fn build_documentation() {
|
|||||||
|
|
||||||
let copy_result = if cfg!(target_os = "windows") {
|
let copy_result = if cfg!(target_os = "windows") {
|
||||||
Command::new("xcopy")
|
Command::new("xcopy")
|
||||||
.args(&["/E", "/I", "/Y", "docs\\book", "static\\docs"])
|
.args(["/E", "/I", "/Y", "docs\\book", "static\\docs"])
|
||||||
.status()
|
.status()
|
||||||
} else {
|
} else {
|
||||||
Command::new("cp")
|
Command::new("cp")
|
||||||
.args(&["-r", "docs/book", "static/docs"])
|
.args(["-r", "docs/book", "static/docs"])
|
||||||
.status()
|
.status()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user