Use unreachable!() instead of panic!().
This commit is contained in:
parent
6098f7f924
commit
9e26575ed8
@ -222,7 +222,7 @@ impl ::serde::ser::Serialize for FileLines {
|
||||
fn serialize<S>(&self, _: S) -> Result<S::Ok, S::Error>
|
||||
where S: ::serde::ser::Serializer
|
||||
{
|
||||
panic!("FileLines cannot be serialized. This is a rustfmt bug.");
|
||||
unreachable!("FileLines cannot be serialized. This is a rustfmt bug.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user