Skip to content

Commit

Permalink
clippy::question_mark
Browse files Browse the repository at this point in the history
  • Loading branch information
kaivol committed Dec 30, 2023
1 parent 353e524 commit 10bcd8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/libs/bindgen/src/rust/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ pub fn writer(writer: &Writer, def: metadata::Field) -> TokenStream {
}

fn initializer(writer: &Writer, def: metadata::Field) -> Option<TokenStream> {
let Some(value) = constant(def) else {
return None;
};
let value = constant(def)?;

let mut input = value.as_str();

Expand Down

0 comments on commit 10bcd8c

Please sign in to comment.