From e361b11410015f51d492275fee6fea3d2b2c93ff Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Sun, 30 Jan 2022 18:04:00 -0500 Subject: [PATCH] Run cargo fmt --- src/content/accept_language.rs | 2 +- src/content/language_range_proposal.rs | 2 +- src/language/mod.rs | 12 ++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/content/accept_language.rs b/src/content/accept_language.rs index 62d47b68..e6937db9 100644 --- a/src/content/accept_language.rs +++ b/src/content/accept_language.rs @@ -237,4 +237,4 @@ mod test { assert!(accept.wildcard()); Ok(()) } -} \ No newline at end of file +} diff --git a/src/content/language_range_proposal.rs b/src/content/language_range_proposal.rs index 3dc0bb49..1b4b85c7 100644 --- a/src/content/language_range_proposal.rs +++ b/src/content/language_range_proposal.rs @@ -122,4 +122,4 @@ mod test { let err = LanguageProposal::new("en", Some(1.1)).unwrap_err(); assert_eq!(err.status(), 500); } -} \ No newline at end of file +} diff --git a/src/language/mod.rs b/src/language/mod.rs index 21b78001..0b6e4816 100644 --- a/src/language/mod.rs +++ b/src/language/mod.rs @@ -1,16 +1,20 @@ //! RFC 4647 Language Ranges. -//! +//! //! [Read more](https://datatracker.ietf.org/doc/html/rfc4647) mod parse; use crate::headers::HeaderValue; -use std::{fmt::{self, Display}, borrow::Cow, str::FromStr}; +use std::{ + borrow::Cow, + fmt::{self, Display}, + str::FromStr, +}; /// An RFC 4647 language range. #[derive(Debug, Clone, PartialEq)] pub struct LanguageRange { - pub(crate) tags: Vec> + pub(crate) tags: Vec>, } impl Display for LanguageRange { @@ -46,4 +50,4 @@ impl<'a> From<&'a str> for LanguageRange { fn from(value: &'a str) -> Self { Self::from_str(value).unwrap() } -} \ No newline at end of file +}