fix: Use a string literal with unreachable (#3768)
This should have been taken care of with the update to Rust 2021 Edition, but rustc had a bug [1]. The bug will be fixed in Rust 1.59, which means this code will stop compiling. [1] https://github.com/rust-lang/rust/pull/93179pull/24376/head
parent
a3e15ade62
commit
37c65fc24f
|
@ -275,7 +275,7 @@ impl Dictionary {
|
|||
}
|
||||
}
|
||||
}
|
||||
_ => unreachable!(format!("operator {:?} not supported for row_ids_equal", op)),
|
||||
_ => unreachable!("operator {:?} not supported for row_ids_equal", op),
|
||||
}
|
||||
} else if let cmp::Operator::NotEqual = op {
|
||||
// special case - the column does not contain the value in the
|
||||
|
@ -410,7 +410,7 @@ impl Dictionary {
|
|||
self.row_ids_encoded_cmp(id, &cmp::Operator::LT, dst)
|
||||
}
|
||||
_ => {
|
||||
unreachable!(format!("operator {:?} not supported for row_ids_cmp", op));
|
||||
unreachable!("operator {:?} not supported for row_ids_cmp", op);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue