Skip to content

Commit 0e96de1

Browse files
committed
Make ir::Item::is_module public
1 parent 3761ada commit 0e96de1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libbindgen/src/ir/item.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ impl Item {
490490
}
491491
}
492492

493-
fn is_module(&self) -> bool {
493+
/// Is this item a module?
494+
pub fn is_module(&self) -> bool {
494495
match self.kind {
495496
ItemKind::Module(..) => true,
496497
_ => false,

0 commit comments

Comments
 (0)