Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vodik committed Feb 6, 2022
1 parent 7438580 commit e361b11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/content/accept_language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,4 @@ mod test {
assert!(accept.wildcard());
Ok(())
}
}
}
2 changes: 1 addition & 1 deletion src/content/language_range_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ mod test {
let err = LanguageProposal::new("en", Some(1.1)).unwrap_err();
assert_eq!(err.status(), 500);
}
}
}
12 changes: 8 additions & 4 deletions src/language/mod.rs
Original file line number Diff line number Diff line change
@@ -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<Cow<'static, str>>
pub(crate) tags: Vec<Cow<'static, str>>,
}

impl Display for LanguageRange {
Expand Down Expand Up @@ -46,4 +50,4 @@ impl<'a> From<&'a str> for LanguageRange {
fn from(value: &'a str) -> Self {
Self::from_str(value).unwrap()
}
}
}

0 comments on commit e361b11

Please sign in to comment.