Skip to content

Commit

Permalink
Clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Dec 13, 2024
1 parent c604e9c commit 1c5c6cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conformance_dsl/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ impl TryFrom<&ModelValue> for Element {
ModelValue::Decimal(d) => (*d).into(),
ModelValue::Timestamp(t) => (*t).into(),
ModelValue::String(s) => s.to_owned().into(),
// TODO: Logic is needed to identify escaped symbols and resolve them.
ModelValue::Symbol(s) => s.as_symbol_ref().to_owned().into(),
ModelValue::List(values) => {
let elements = values
Expand Down Expand Up @@ -356,7 +357,7 @@ pub(crate) fn compare_values<T: ion_rs::Decoder>(

let (expected_txt, expected_id) = match symbol_token {
SymbolToken::Text(txt) => return Ok(symbol_text == txt),
SymbolToken::Address(id) => (String::from(""), *id as usize),
SymbolToken::Address(id) => (String::from(""), *id),
SymbolToken::Absent(symtab, id) => {
match ctx.get_symbol_from_table(symtab, *id as usize) {
None => (String::from(""), 0_usize),
Expand Down

0 comments on commit 1c5c6cc

Please sign in to comment.