Extract features

Needed to infer the type if none is used
This commit is contained in:
Fabian Boehm 2024-12-11 19:30:01 +01:00
parent 0060316a96
commit ea83016317

View file

@ -447,16 +447,15 @@ pub fn status(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> O
streams.out.append(L!("Profile: ")); streams.out.append(L!("Profile: "));
streams.out.appendln(profile); streams.out.appendln(profile);
streams.out.append(L!("Features: ")); streams.out.append(L!("Features: "));
streams.out.appendln(str2wcstring( let features: &[&str] = &[
[ #[cfg(gettext)]
#[cfg(gettext)] "gettext",
"gettext", #[cfg(feature = "installable")]
#[cfg(feature = "installable")] "installable",
"installable", ];
] streams
.join(" ") .out
.as_bytes(), .appendln(str2wcstring(features.join(" ").as_bytes()));
));
streams.out.appendln(""); streams.out.appendln("");
return STATUS_CMD_OK; return STATUS_CMD_OK;
} }