From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/flate2/tests/early-flush.rs | 2 -- vendor/flate2/tests/empty-read.rs | 2 -- vendor/flate2/tests/gunzip.rs | 4 +--- vendor/flate2/tests/zero-write.rs | 2 -- 4 files changed, 1 insertion(+), 9 deletions(-) (limited to 'vendor/flate2/tests') diff --git a/vendor/flate2/tests/early-flush.rs b/vendor/flate2/tests/early-flush.rs index e717adaa5..b43f47450 100644 --- a/vendor/flate2/tests/early-flush.rs +++ b/vendor/flate2/tests/early-flush.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use std::io::{Read, Write}; use flate2::read::GzDecoder; diff --git a/vendor/flate2/tests/empty-read.rs b/vendor/flate2/tests/empty-read.rs index 755123833..3724c23d7 100644 --- a/vendor/flate2/tests/empty-read.rs +++ b/vendor/flate2/tests/empty-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use std::io::{Read, Write}; #[test] diff --git a/vendor/flate2/tests/gunzip.rs b/vendor/flate2/tests/gunzip.rs index c3820328a..f7d413213 100644 --- a/vendor/flate2/tests/gunzip.rs +++ b/vendor/flate2/tests/gunzip.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::GzDecoder; use flate2::read::MultiGzDecoder; use std::fs::File; @@ -16,7 +14,7 @@ fn test_extract_success() { .unwrap() .read_to_end(&mut expected) .unwrap(); - assert!(content == expected); + assert_eq!(content, expected); } // // test partial extraction of a multistream gzipped file diff --git a/vendor/flate2/tests/zero-write.rs b/vendor/flate2/tests/zero-write.rs index f0db86cb8..22be8eec2 100644 --- a/vendor/flate2/tests/zero-write.rs +++ b/vendor/flate2/tests/zero-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - #[test] fn zero_write_is_error() { let mut buf = [0u8]; -- cgit v1.2.3