Skip to content

Commit 027ee8f

Browse files
committed
chore: run rustfmt
1 parent 7440755 commit 027ee8f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

bindgen/callbacks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ pub struct AttributeInfo<'a> {
242242
/// The kind of the item.
243243
pub kind: AttributeItemKind,
244244
/// The kind of a method item.
245-
pub method_kind: Option<AttributeMethodKind>
245+
pub method_kind: Option<AttributeMethodKind>,
246246
}
247247

248248
#[derive(Debug, Clone, Copy, PartialEq, Eq)]

bindgen/options/cli.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
use crate::{
44
builder,
55
callbacks::{
6-
AttributeInfo, AttributeItemKind, DeriveInfo, ItemInfo, ParseCallbacks, TypeKind,
6+
AttributeInfo, AttributeItemKind, DeriveInfo, ItemInfo, ParseCallbacks,
7+
TypeKind,
78
},
89
features::{RustEdition, EARLIEST_STABLE_RUST},
910
regex_set::RegexSet,
@@ -759,10 +760,16 @@ where
759760

760761
let flag = match &self.kind {
761762
None => "--with-attribute-custom",
762-
Some(AttributeItemKind::Struct) => "--with-attribute-custom-struct",
763+
Some(AttributeItemKind::Struct) => {
764+
"--with-attribute-custom-struct"
765+
}
763766
Some(AttributeItemKind::Enum) => "--with-attribute-custom-enum",
764-
Some(AttributeItemKind::Union) => "--with-attribute-custom-union",
765-
Some(AttributeItemKind::Function) => "--with-attribute-custom-function",
767+
Some(AttributeItemKind::Union) => {
768+
"--with-attribute-custom-union"
769+
}
770+
Some(AttributeItemKind::Function) => {
771+
"--with-attribute-custom-function"
772+
}
766773
};
767774

768775
let attributes = self.attributes.join(",");

0 commit comments

Comments
 (0)