@@ -680,7 +680,7 @@ impl<T> [T] {
680680 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
681681 #[ inline]
682682 pub fn windows ( & self , size : usize ) -> Windows < ' _ , T > {
683- assert ! ( size != 0 ) ;
683+ assert_ne ! ( size, 0 ) ;
684684 Windows { v : self , size }
685685 }
686686
@@ -714,7 +714,7 @@ impl<T> [T] {
714714 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
715715 #[ inline]
716716 pub fn chunks ( & self , chunk_size : usize ) -> Chunks < ' _ , T > {
717- assert ! ( chunk_size != 0 ) ;
717+ assert_ne ! ( chunk_size, 0 ) ;
718718 Chunks { v : self , chunk_size }
719719 }
720720
@@ -752,7 +752,7 @@ impl<T> [T] {
752752 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
753753 #[ inline]
754754 pub fn chunks_mut ( & mut self , chunk_size : usize ) -> ChunksMut < ' _ , T > {
755- assert ! ( chunk_size != 0 ) ;
755+ assert_ne ! ( chunk_size, 0 ) ;
756756 ChunksMut { v : self , chunk_size }
757757 }
758758
@@ -789,7 +789,7 @@ impl<T> [T] {
789789 #[ stable( feature = "chunks_exact" , since = "1.31.0" ) ]
790790 #[ inline]
791791 pub fn chunks_exact ( & self , chunk_size : usize ) -> ChunksExact < ' _ , T > {
792- assert ! ( chunk_size != 0 ) ;
792+ assert_ne ! ( chunk_size, 0 ) ;
793793 let rem = self . len ( ) % chunk_size;
794794 let len = self . len ( ) - rem;
795795 let ( fst, snd) = self . split_at ( len) ;
@@ -834,7 +834,7 @@ impl<T> [T] {
834834 #[ stable( feature = "chunks_exact" , since = "1.31.0" ) ]
835835 #[ inline]
836836 pub fn chunks_exact_mut ( & mut self , chunk_size : usize ) -> ChunksExactMut < ' _ , T > {
837- assert ! ( chunk_size != 0 ) ;
837+ assert_ne ! ( chunk_size, 0 ) ;
838838 let rem = self . len ( ) % chunk_size;
839839 let len = self . len ( ) - rem;
840840 let ( fst, snd) = self . split_at_mut ( len) ;
0 commit comments