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 aadd1e4Copy full SHA for aadd1e4
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,12 @@ impl Bindings {
997
cmd.args(["--config-path", path]);
998
999
1000
+ let edition = self
1001
+ .options
1002
+ .rust_edition
1003
+ .unwrap_or_else(|| self.options.rust_target.latest_edition());
1004
+ cmd.args(["--edition", &format!("{edition}")]);
1005
+
1006
let mut child = cmd.spawn()?;
1007
let mut child_stdin = child.stdin.take().unwrap();
1008
let mut child_stdout = child.stdout.take().unwrap();
0 commit comments