From 9e26575ed8c8fc94278f97f68f478361fee9cc9c Mon Sep 17 00:00:00 2001 From: Michael Killough Date: Wed, 17 May 2017 17:16:35 +0700 Subject: [PATCH] Use unreachable!() instead of panic!(). --- src/file_lines.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_lines.rs b/src/file_lines.rs index c6c4cc3e597..1e151a57838 100644 --- a/src/file_lines.rs +++ b/src/file_lines.rs @@ -222,7 +222,7 @@ impl ::serde::ser::Serialize for FileLines { fn serialize(&self, _: S) -> Result 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."); } }