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/93179
pull/24376/head
Carol (Nichols || Goulding) 2022-02-16 11:44:48 -05:00 committed by GitHub
parent a3e15ade62
commit 37c65fc24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
},
}