Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Jan 13, 2025
1 parent 56bd2e1 commit c0f670e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,14 +993,12 @@ impl Parser {
pub fn in_out_type(&mut self) -> NodeId {
let _span = span!();
let span_start = self.position();
let span_end;

let in_ty = self.typename();
self.thin_arrow();
let out_ty = self.typename();

span_end = self.position() + 1;

let span_end = self.position() + 1;
self.create_node(AstNode::InOutType(in_ty, out_ty), span_start, span_end)
}

Expand Down

0 comments on commit c0f670e

Please sign in to comment.