File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ use std::fmt::Write;
10
10
fn require ( enabled_features : & [ & str ] , disabled_features : & [ & str ] ) -> String {
11
11
let mut s = String :: new ( ) ;
12
12
for feature in enabled_features {
13
- write ! ( s, "#[cfg(not(feature=\" {feature}\" ))] compile_error!(\" expected feature {feature} to be enabled\" );\n " ,
13
+ writeln ! ( s, "#[cfg(not(feature=\" {feature}\" ))] compile_error!(\" expected feature {feature} to be enabled\" );" ,
14
14
feature=feature) . unwrap ( ) ;
15
15
}
16
16
for feature in disabled_features {
17
- write ! ( s, "#[cfg(feature=\" {feature}\" )] compile_error!(\" did not expect feature {feature} to be enabled\" );\n " ,
17
+ writeln ! ( s, "#[cfg(feature=\" {feature}\" )] compile_error!(\" did not expect feature {feature} to be enabled\" );" ,
18
18
feature=feature) . unwrap ( ) ;
19
19
}
20
20
s
You can’t perform that action at this time.
0 commit comments