We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustfmt --format ...
1 parent 78adb33 commit 59a43e1Copy full SHA for 59a43e1
bindgen/lib.rs
@@ -208,7 +208,7 @@ impl std::fmt::Display for Formatter {
208
Self::Prettyplease => "prettyplease",
209
};
210
211
- s.fmt(f)
+ std::fmt::Display::fmt(&s, f)
212
}
213
214
@@ -999,6 +999,12 @@ impl Bindings {
999
cmd.args(["--config-path", path]);
1000
1001
1002
+ let edition = self
1003
+ .options
1004
+ .rust_edition
1005
+ .unwrap_or_else(|| self.options.rust_target.latest_edition());
1006
+ cmd.args(["--edition", &format!("{edition}")]);
1007
+
1008
let mut child = cmd.spawn()?;
1009
let mut child_stdin = child.stdin.take().unwrap();
1010
let mut child_stdout = child.stdout.take().unwrap();
0 commit comments