From 01ad9a11ae1bc771942020e6e284f9aabc4f66e6 Mon Sep 17 00:00:00 2001 From: Aditya Mukhopadhyay Date: Fri, 7 Jul 2023 14:37:49 +0530 Subject: [PATCH] Optimized imports. --- src/server/error_codes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/error_codes.rs b/src/server/error_codes.rs index 8c023fb..76c4546 100644 --- a/src/server/error_codes.rs +++ b/src/server/error_codes.rs @@ -1,4 +1,4 @@ -use std::fmt::Display; +use std::fmt::{Display, Formatter, Result}; pub enum ErrorCode { InvalidSchemaFile = 1, @@ -7,7 +7,7 @@ pub enum ErrorCode { } impl Display for ErrorCode { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + fn fmt(&self, f: &mut Formatter<'_>) -> Result { let error_code = match self { ErrorCode::InvalidSchemaFile => "InvalidSchemaFile", ErrorCode::InvalidSchema => "InvalidSchema",