diff --git a/src/writer.rs b/src/writer.rs index c3f7d29a..e89a1d6e 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -251,7 +251,7 @@ impl GenericZipWriter match *self { Storer(ref mut w) => w, - _ => fail!("Should have switched to stored beforehand"), + _ => panic!("Should have switched to stored beforehand"), } } @@ -260,7 +260,7 @@ impl GenericZipWriter match self { Storer(w) => w, - _ => fail!("Should have switched to stored beforehand"), + _ => panic!("Should have switched to stored beforehand"), } } }