Skip to content

Commit

Permalink
Optimized imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Mukhopadhyay committed Jul 7, 2023
1 parent 3dada33 commit 01ad9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/error_codes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::fmt::Display;
use std::fmt::{Display, Formatter, Result};

pub enum ErrorCode {
InvalidSchemaFile = 1,
Expand All @@ -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",
Expand Down

0 comments on commit 01ad9a1

Please sign in to comment.