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;
1010fn require ( enabled_features : & [ & str ] , disabled_features : & [ & str ] ) -> String {
1111 let mut s = String :: new ( ) ;
1212 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\" );" ,
1414 feature=feature) . unwrap ( ) ;
1515 }
1616 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\" );" ,
1818 feature=feature) . unwrap ( ) ;
1919 }
2020 s
You can’t perform that action at this time.
0 commit comments