Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Jul 13, 2023
1 parent 68059bd commit 64bf9e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/macros/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ impl Arg {
}
});

// For for types that are `Option<&mut T>` to turn them into `Option<&T>`, marking the Arg as
// as "passed by reference".
// For for types that are `Option<&mut T>` to turn them into `Option<&T>`,
// marking the Arg as as "passed by reference".
let option = Some(seg)
.filter(|seg| seg.ident == "Option")
.and_then(|seg| {
Expand All @@ -311,11 +311,11 @@ impl Arg {
new_ref.mutability = None;
pass_by_ref = true;
Type::Reference(new_ref)
},
}
_ => ty.clone(),
};
GenericArgument::Type(_rtype)
},
}
_ => ga.clone(),
};
new_ga.to_token_stream().to_string()
Expand All @@ -327,7 +327,7 @@ impl Arg {

let stringified = match result {
Some(result) if is_return => result,
_ => match option {
_ => match option {
Some(result) => result,
None => path.to_token_stream().to_string(),
},
Expand Down

0 comments on commit 64bf9e7

Please sign in to comment.