mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
removed unnecessary borrow call
This commit is contained in:
parent
3dda93d50f
commit
064ee95b1c
1 changed files with 1 additions and 2 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue