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(