We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c8418b commit 50f0001Copy full SHA for 50f0001
build.rs
@@ -14,8 +14,8 @@ fn main() {
14
15
// write constants
16
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();
+ writeln!(file, "pub const DWB_CAPACITY: u16 = {};", dwb_capacity).unwrap();
+ writeln!(file, "pub const BTBE_CAPACITY: u16 = {};", btbe_capacity).unwrap();
19
20
// monitor
21
println!("cargo:rerun-if-env-changed=DWB_CAPACITY");
0 commit comments