We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b645e9f + 7155fe3 commit f9a67b5Copy full SHA for f9a67b5
src/bin/common.rs
@@ -275,10 +275,13 @@ fn get_version() -> &'static str {
275
276
fn get_long_version() -> &'static str {
277
LONG_VERSION_STR.get_or_init(|| {
278
- let mut rustflags = env!("CARGO_ENCODED_RUSTFLAGS");
279
- if rustflags.trim().is_empty() {
280
- rustflags = "(None)";
281
- }
+ let rustflags = env!("CARGO_ENCODED_RUSTFLAGS");
+ let rustflags = if rustflags.trim().is_empty() {
+ "(None)".to_string()
+ } else {
282
+ // Replace non-printable ASCII Unit Separator with whitespace
283
+ rustflags.replace(0x1F as char, " ")
284
+ };
285
format!(
286
"{}\n{} {}\nCompiled CPU Features: {}\nRuntime Assembly Support: {}{}\nThreading: {}\nUnstable Features: {}\nCompiler Flags: {}",
287
get_version(),
0 commit comments