From 49cd06600431bc314e9c1cebfc73ecfbe5d9f894 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 18 Apr 2023 21:29:47 +0000 Subject: feat: async-std support !! --- src/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/response.rs') diff --git a/src/response.rs b/src/response.rs index 9a8efb8..90950da 100644 --- a/src/response.rs +++ b/src/response.rs @@ -98,7 +98,7 @@ impl Response { #[must_use] pub fn binary_success_auto(content: &[u8]) -> Self { Self::new(22, String::from_utf8_lossy(content)) - .with_mime(&tree_magic::from_u8(&*content)) + .with_mime(&tree_magic::from_u8(content)) .clone() } -- cgit v1.2.3