Skip to content

Commit

Permalink
Refactor the features module (#2592)
Browse files Browse the repository at this point in the history
* Refactor the `features` module

Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
  • Loading branch information
pvdrz and tshepang committed Jul 28, 2023
1 parent d2c188e commit bf5e79b
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 226 deletions.
4 changes: 2 additions & 2 deletions bindgen-cli/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ use std::process::exit;

fn rust_target_help() -> String {
format!(
"Version of the Rust compiler to target. Valid options are: {:?}. Defaults to {:?}.",
"Version of the Rust compiler to target. Valid options are: {:?}. Defaults to {}.",
RUST_TARGET_STRINGS,
String::from(RustTarget::default())
RustTarget::default()
)
}

Expand Down
2 changes: 1 addition & 1 deletion bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4348,7 +4348,7 @@ fn unsupported_abi_diagnostic(
.add_annotation(
format!(
"The configured Rust version is {}.",
String::from(ctx.options().rust_target)
ctx.options().rust_target
),
Level::Note,
);
Expand Down
Loading

0 comments on commit bf5e79b

Please sign in to comment.