Skip to content

Commit e361b11

Browse files
committed
Run cargo fmt
1 parent 7438580 commit e361b11

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/content/accept_language.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,4 @@ mod test {
237237
assert!(accept.wildcard());
238238
Ok(())
239239
}
240-
}
240+
}

src/content/language_range_proposal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ mod test {
122122
let err = LanguageProposal::new("en", Some(1.1)).unwrap_err();
123123
assert_eq!(err.status(), 500);
124124
}
125-
}
125+
}

src/language/mod.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
//! RFC 4647 Language Ranges.
2-
//!
2+
//!
33
//! [Read more](https://datatracker.ietf.org/doc/html/rfc4647)
44
55
mod parse;
66

77
use crate::headers::HeaderValue;
8-
use std::{fmt::{self, Display}, borrow::Cow, str::FromStr};
8+
use std::{
9+
borrow::Cow,
10+
fmt::{self, Display},
11+
str::FromStr,
12+
};
913

1014
/// An RFC 4647 language range.
1115
#[derive(Debug, Clone, PartialEq)]
1216
pub struct LanguageRange {
13-
pub(crate) tags: Vec<Cow<'static, str>>
17+
pub(crate) tags: Vec<Cow<'static, str>>,
1418
}
1519

1620
impl Display for LanguageRange {
@@ -46,4 +50,4 @@ impl<'a> From<&'a str> for LanguageRange {
4650
fn from(value: &'a str) -> Self {
4751
Self::from_str(value).unwrap()
4852
}
49-
}
53+
}

0 commit comments

Comments
 (0)