We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11fb21f commit 90e7f49Copy full SHA for 90e7f49
compiler/rustc_serialize/src/opaque.rs
@@ -666,7 +666,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
666
fn read_str(&mut self) -> Result<Cow<'_, str>, Self::Error> {
667
let len = self.read_usize()?;
668
let sentinel = self.data[self.position + len];
669
- assert!(sentinel == STR_SENTINEL);
+ assert_eq!(sentinel, STR_SENTINEL);
670
let s = unsafe {
671
std::str::from_utf8_unchecked(&self.data[self.position..self.position + len])
672
};
0 commit comments