Use unreachable!() instead of panic!().
This commit is contained in:
parent
6098f7f924
commit
9e26575ed8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue