assert auto traits on Compress

This commit is contained in:
Rob Ede 2023-07-19 19:47:51 +01:00
parent 4bba8f23b6
commit 4a89d16543
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 3 additions and 2 deletions

View File

@ -268,7 +268,8 @@ static SUPPORTED_ENCODINGS: &[Encoding] = &[
mod tests {
use std::collections::HashSet;
// use static_assertions::assert_impl_all;
use static_assertions::assert_impl_all;
use super::*;
use crate::{http::header::ContentType, middleware::DefaultHeaders, test, web, App};
@ -278,7 +279,7 @@ mod tests {
const TEXT_DATA_PART: &str = "hello world ";
const TEXT_DATA: &str = const_str::repeat!(TEXT_DATA_PART, 100);
// assert_impl_all!(Compress: Send, Sync);
assert_impl_all!(Compress: Send, Sync);
pub fn gzip_decode(bytes: impl AsRef<[u8]>) -> Vec<u8> {
use std::io::Read as _;