Skip to content

Commit

Permalink
fixup! clean
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Feb 18, 2025
1 parent e319f79 commit 91a44b1
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions datafusion/excalibur/macros/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ impl InputFnInfo {

let mut inputs: Vec<_> = sig.inputs.iter().collect();
let mut out_arg = None;
if let Some(last) = inputs.last() {
if let FnArg::Typed(typed) = last {
if let Pat::Ident(ident) = &*typed.pat {
if let Type::Reference(type_reference) = &*typed.ty {
if type_reference.mutability.is_some() {
out_arg = Some(NameType {
name: ident.ident.clone(),
ty: (*typed.ty).clone(),
});
inputs.pop();
}
if let Some(FnArg::Typed(typed)) = inputs.last() {
if let Pat::Ident(ident) = &*typed.pat {
if let Type::Reference(type_reference) = &*typed.ty {
if type_reference.mutability.is_some() {
out_arg = Some(NameType {
name: ident.ident.clone(),
ty: (*typed.ty).clone(),
});
inputs.pop();
}
}
}
Expand Down

0 comments on commit 91a44b1

Please sign in to comment.