Skip to content

Commit 8368b7d

Browse files
committed
sys: Adjust build script to make linter happy
1 parent 02bbe3f commit 8368b7d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tinydtls-sys/build.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ fn main() {
2626
// TinyDTLS does not like being built out of source, but we get verification errors if files
2727
// in the source package are modified.
2828
// Therefore, we copy tinydtls over to the output directory and build from there.
29-
let mut copy_options = fs_extra::dir::CopyOptions::default();
30-
copy_options.overwrite = true;
29+
let copy_options = fs_extra::dir::CopyOptions {
30+
overwrite: true,
31+
..Default::default()
32+
};
3133
fs_extra::dir::copy(
3234
Path::new(env!("CARGO_MANIFEST_DIR")).join("src").join("tinydtls"),
3335
&out_dir,
@@ -41,7 +43,7 @@ fn main() {
4143
.unwrap()
4244
.into_string()
4345
.unwrap()
44-
.split(" ")
46+
.split(' ')
4547
.map(String::from)
4648
.collect();
4749

@@ -67,10 +69,10 @@ fn main() {
6769

6870
// Enable debug symbols if enabled in Rust.
6971
match std::env::var_os("DEBUG").unwrap().to_str().unwrap() {
70-
"0" | "false" => {},
72+
"0" | "false" => {}
7173
_ => {
7274
build_config.with("debug", None);
73-
},
75+
}
7476
}
7577

7678
// Enable dependency features based on selected cargo features.

0 commit comments

Comments
 (0)