• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/src/ir/item.rs b/src/ir/item.rs
2index 7f3afefb..90d15e96 100644
3--- a/src/ir/item.rs
4+++ b/src/ir/item.rs
5@@ -148,7 +148,11 @@ impl<'a, 'b> Iterator for ItemAncestorsIter<'a, 'b>
6 impl AsTemplateParam for ItemId {
7     type Extra = ();
8
9-    fn as_template_param(&self, ctx: &BindgenContext, _: &()) -> Option<ItemId> {
10+    fn as_template_param(
11+        &self,
12+        ctx: &BindgenContext,
13+        _: &(),
14+    ) -> Option<ItemId> {
15         ctx.resolve_item(*self).as_template_param(ctx, &())
16     }
17 }
18@@ -156,7 +160,11 @@ impl AsTemplateParam for ItemId {
19 impl AsTemplateParam for Item {
20     type Extra = ();
21
22-    fn as_template_param(&self, ctx: &BindgenContext, _: &()) -> Option<ItemId> {
23+    fn as_template_param(
24+        &self,
25+        ctx: &BindgenContext,
26+        _: &(),
27+    ) -> Option<ItemId> {
28         self.kind.as_template_param(ctx, self)
29     }
30 }
31diff --git a/src/ir/traversal.rs b/src/ir/traversal.rs
32index 762a3e2d..b9c9dd4e 100644
33--- a/src/ir/traversal.rs
34+++ b/src/ir/traversal.rs
35@@ -9,6 +9,8 @@ use std::collections::{BTreeMap, VecDeque};
36 ///
37 ///   from --> to
38 ///
39+/// Random content to generate a diff.
40+///
41 /// The `from` is left implicit: it is the concrete `Trace` implementer which
42 /// yielded this outgoing edge.
43 #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
44@@ -33,7 +35,9 @@ impl Into<ItemId> for Edge {
45     }
46 }
47
48-/// The kind of edge reference. This is useful when we wish to only consider
49+/// The kind of edge reference.
50+///
51+/// This is useful when we wish to only consider
52 /// certain kinds of edges for a particular traversal or analysis.
53 #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
54 pub enum EdgeKind {
55diff --git a/tests/headers/anon_enum.hpp b/tests/headers/anon_enum.hpp
56index 1961fe6c..34759df3 100644
57--- a/tests/headers/anon_enum.hpp
58+++ b/tests/headers/anon_enum.hpp
59@@ -1,7 +1,7 @@
60 struct Test {
61   int foo;
62   float bar;
63-  enum { T_NONE };
64+  enum { T_NONE, T_SOME };
65 };
66
67 typedef enum {
68