summaryrefslogtreecommitdiff
path: root/src/ir/annotations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/annotations.rs')
-rw-r--r--src/ir/annotations.rs17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/ir/annotations.rs b/src/ir/annotations.rs
index 98be0540..bc57b555 100644
--- a/src/ir/annotations.rs
+++ b/src/ir/annotations.rs
@@ -148,10 +148,11 @@ impl Annotations {
fn parse(&mut self, comment: &clang::Comment, matched: &mut bool) {
use clang_sys::CXComment_HTMLStartTag;
if comment.kind() == CXComment_HTMLStartTag &&
- comment.get_tag_name() == "div" &&
- comment.get_tag_attrs()
- .next()
- .map_or(false, |attr| attr.name == "rustbindgen") {
+ comment.get_tag_name() == "div" &&
+ comment.get_tag_attrs().next().map_or(false, |attr| {
+ attr.name == "rustbindgen"
+ })
+ {
*matched = true;
for attr in comment.get_tag_attrs() {
match attr.name.as_str() {
@@ -159,10 +160,10 @@ impl Annotations {
"hide" => self.hide = true,
"nocopy" => self.disallow_copy = true,
"replaces" => {
- self.use_instead_of = Some(attr.value
- .split("::")
- .map(Into::into)
- .collect())
+ self.use_instead_of =
+ Some(
+ attr.value.split("::").map(Into::into).collect(),
+ )
}
"private" => {
self.private_fields = Some(attr.value != "false")