File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments