From 962558c1238d720e58edec8f1969bfe04bc0381a Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 18 Jan 2025 02:40:21 +0200 Subject: [PATCH] reorder implementations --- src/client/connection/response/meta/mime.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/connection/response/meta/mime.rs b/src/client/connection/response/meta/mime.rs index 9ce4739..8e813eb 100644 --- a/src/client/connection/response/meta/mime.rs +++ b/src/client/connection/response/meta/mime.rs @@ -9,12 +9,6 @@ use glib::{Regex, RegexCompileFlags, RegexMatchFlags}; /// * the value stored in lowercase pub struct Mime(String); -impl std::fmt::Display for Mime { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - write!(f, "{}", self.0) - } -} - impl Mime { // Constructors @@ -57,6 +51,12 @@ impl Mime { } } +impl std::fmt::Display for Mime { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + write!(f, "{}", self.0) + } +} + /// Extract MIME type from from string that includes **header** pub fn parse(s: &str) -> Option { Regex::split_simple(