diff options
Diffstat (limited to 'src/context.rs')
-rw-r--r-- | src/context.rs | 41 |
1 files changed, 13 insertions, 28 deletions
diff --git a/src/context.rs b/src/context.rs index bb6667e..4a50446 100644 --- a/src/context.rs +++ b/src/context.rs @@ -40,35 +40,20 @@ pub enum Context { } impl std::fmt::Display for Context { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + fn fmt( + &self, + f: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { match self { - Context::Fragment => { - write!(f, "fragment") - }, - Context::Host => { - write!(f, "host") - }, - Context::Ipv4Address => { - write!(f, "IPv4 address") - }, - Context::Ipv6Address => { - write!(f, "IPv6 address") - }, - Context::IpvFuture => { - write!(f, "IPvFuture") - }, - Context::Path => { - write!(f, "path") - }, - Context::Query => { - write!(f, "query") - }, - Context::Scheme => { - write!(f, "scheme") - }, - Context::Userinfo => { - write!(f, "user info") - }, + Context::Fragment => write!(f, "fragment"), + Context::Host => write!(f, "host"), + Context::Ipv4Address => write!(f, "IPv4 address"), + Context::Ipv6Address => write!(f, "IPv6 address"), + Context::IpvFuture => write!(f, "IPvFuture"), + Context::Path => write!(f, "path"), + Context::Query => write!(f, "query"), + Context::Scheme => write!(f, "scheme"), + Context::Userinfo => write!(f, "user info"), } } } |