Skip to content

Commit

Permalink
Revert unstable clippy suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Slayton committed Sep 22, 2022
1 parent ff1e0e7 commit c8ad42c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/value/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ impl IonSymbolToken for Symbol {
}

fn symbol_id(&self) -> Option<SymbolId> {
self.text().is_none().then_some(0)
match self.text() {
Some(_) => None,
None => Some(0),
}
}

fn with_text(self, text: &'static str) -> Self {
Expand Down

0 comments on commit c8ad42c

Please sign in to comment.