diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-30 13:42:07 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-30 13:42:07 -0700 |
commit | 9d961981db81d10a7315160fbcb45b1ebaf4c119 (patch) | |
tree | 8f34548cf5152a49ab90e0eb2ffee47392793f42 /src/context.rs | |
parent | 99a6971893b7d08c1d976e4eb99701e36d80afb8 (diff) |
Add and apply rustfmt configuration
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"), } } } |