Skip to content

Commit bf5e79b

Browse files
pvdrztshepang
andauthoredJul 28, 2023
Refactor the features module (rust-lang#2592)
* Refactor the `features` module Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>

File tree

5 files changed

+184
-226
lines changed

5 files changed

+184
-226
lines changed
 

‎bindgen-cli/options.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ use std::process::exit;
1212

1313
fn rust_target_help() -> String {
1414
format!(
15-
"Version of the Rust compiler to target. Valid options are: {:?}. Defaults to {:?}.",
15+
"Version of the Rust compiler to target. Valid options are: {:?}. Defaults to {}.",
1616
RUST_TARGET_STRINGS,
17-
String::from(RustTarget::default())
17+
RustTarget::default()
1818
)
1919
}
2020

‎bindgen/codegen/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4348,7 +4348,7 @@ fn unsupported_abi_diagnostic(
43484348
.add_annotation(
43494349
format!(
43504350
"The configured Rust version is {}.",
4351-
String::from(ctx.options().rust_target)
4351+
ctx.options().rust_target
43524352
),
43534353
Level::Note,
43544354
);

0 commit comments

Comments
 (0)
Please sign in to comment.