fix rust borrow
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ fn main() {
|
|||||||
let mut decls = Vec::new();
|
let mut decls = Vec::new();
|
||||||
|
|
||||||
// Process declarations
|
// Process declarations
|
||||||
for item in syntax.items {
|
for item in &syntax.items {
|
||||||
match item {
|
match item {
|
||||||
Item::Fn(item_fn) => {
|
Item::Fn(item_fn) => {
|
||||||
if let Some(decl) = parse_function(&item_fn) {
|
if let Some(decl) = parse_function(&item_fn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user