Skip to content

Commit 50f0001

Browse files
committed
fix linter error
1 parent 3c8418b commit 50f0001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ fn main() {
1414

1515
// write constants
1616
let mut file = File::create(&dest_path).expect("Failed to write to config.rs");
17-
write!(file, "pub const DWB_CAPACITY: u16 = {};\n", dwb_capacity).unwrap();
18-
write!(file, "pub const BTBE_CAPACITY: u16 = {};\n", btbe_capacity).unwrap();
17+
writeln!(file, "pub const DWB_CAPACITY: u16 = {};", dwb_capacity).unwrap();
18+
writeln!(file, "pub const BTBE_CAPACITY: u16 = {};", btbe_capacity).unwrap();
1919

2020
// monitor
2121
println!("cargo:rerun-if-env-changed=DWB_CAPACITY");

0 commit comments

Comments
 (0)