Use unreachable!() instead of panic!().

This commit is contained in:
Michael Killough 2017-05-17 17:16:35 +07:00
parent 6098f7f924
commit 9e26575ed8

View File

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