We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustfmt --format ...
1 parent 0917399 commit 7b7f96eCopy full SHA for 7b7f96e
bindgen/lib.rs
@@ -206,7 +206,7 @@ impl std::fmt::Display for Formatter {
206
Self::Prettyplease => "prettyplease",
207
};
208
209
- s.fmt(f)
+ std::fmt::Display::fmt(&s, f)
210
}
211
212
@@ -997,6 +997,9 @@ impl Bindings {
997
cmd.args(["--config-path", path]);
998
999
1000
+ let edition = self.options.rust_edition.unwrap_or_else(|| self.options.rust_target.latest_edition());
1001
+ cmd.args(["--edition", &format!("{edition}")]);
1002
+
1003
let mut child = cmd.spawn()?;
1004
let mut child_stdin = child.stdin.take().unwrap();
1005
let mut child_stdout = child.stdout.take().unwrap();
0 commit comments