From 064ee95b1c2c20e51e4b4e35a8a9a8679abb0dff Mon Sep 17 00:00:00 2001 From: JannisK89 Date: Thu, 10 Aug 2023 08:41:25 +0200 Subject: [PATCH] removed unnecessary borrow call --- meilisearch-types/src/document_formats.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meilisearch-types/src/document_formats.rs b/meilisearch-types/src/document_formats.rs index 0b5f96ec0..0f1d995f9 100644 --- a/meilisearch-types/src/document_formats.rs +++ b/meilisearch-types/src/document_formats.rs @@ -1,4 +1,3 @@ -use std::borrow::Borrow; use std::fmt::{self, Debug, Display}; use std::fs::File; use std::io::{self, Seek, Write}; @@ -42,7 +41,7 @@ impl Display for DocumentFormatError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Self::Io(e) => write!(f, "{e}"), - Self::MalformedPayload(me, b) => match me.borrow() { + Self::MalformedPayload(me, b) => match me { Error::Json(se) => { let mut message = match se.classify() { Category::Data => {