@@ -674,7 +674,7 @@ impl<T> [T] {
674674 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
675675 #[ inline]
676676 pub fn windows ( & self , size : usize ) -> Windows < ' _ , T > {
677- assert ! ( size != 0 ) ;
677+ assert_ne ! ( size, 0 ) ;
678678 Windows { v : self , size }
679679 }
680680
@@ -708,7 +708,7 @@ impl<T> [T] {
708708 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
709709 #[ inline]
710710 pub fn chunks ( & self , chunk_size : usize ) -> Chunks < ' _ , T > {
711- assert ! ( chunk_size != 0 ) ;
711+ assert_ne ! ( chunk_size, 0 ) ;
712712 Chunks { v : self , chunk_size }
713713 }
714714
@@ -746,7 +746,7 @@ impl<T> [T] {
746746 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
747747 #[ inline]
748748 pub fn chunks_mut ( & mut self , chunk_size : usize ) -> ChunksMut < ' _ , T > {
749- assert ! ( chunk_size != 0 ) ;
749+ assert_ne ! ( chunk_size, 0 ) ;
750750 ChunksMut { v : self , chunk_size }
751751 }
752752
@@ -783,7 +783,7 @@ impl<T> [T] {
783783 #[ stable( feature = "chunks_exact" , since = "1.31.0" ) ]
784784 #[ inline]
785785 pub fn chunks_exact ( & self , chunk_size : usize ) -> ChunksExact < ' _ , T > {
786- assert ! ( chunk_size != 0 ) ;
786+ assert_ne ! ( chunk_size, 0 ) ;
787787 let rem = self . len ( ) % chunk_size;
788788 let len = self . len ( ) - rem;
789789 let ( fst, snd) = self . split_at ( len) ;
@@ -828,7 +828,7 @@ impl<T> [T] {
828828 #[ stable( feature = "chunks_exact" , since = "1.31.0" ) ]
829829 #[ inline]
830830 pub fn chunks_exact_mut ( & mut self , chunk_size : usize ) -> ChunksExactMut < ' _ , T > {
831- assert ! ( chunk_size != 0 ) ;
831+ assert_ne ! ( chunk_size, 0 ) ;
832832 let rem = self . len ( ) % chunk_size;
833833 let len = self . len ( ) - rem;
834834 let ( fst, snd) = self . split_at_mut ( len) ;
0 commit comments