Update meilisearch-lib/src/document_formats.rs

Co-authored-by: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
LiuHanCheng 2022-03-28 14:57:51 +08:00 committed by GitHub
parent c7b489f8cb
commit 80d8ac40af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ pub enum DocumentFormatError {
Internal(Box<dyn std::error::Error + Send + Sync + 'static>),
MalformedPayload(Box<milli::documents::Error>, PayloadType),
}
impl Display for DocumentFormatError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {