Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ enum FileContent {
}

impl FileContent {
fn load(&self) -> Fallible<Cow<[u8]>> {
fn load(&self) -> Fallible<Cow<'_, [u8]>> {
Ok(match *self {
FileContent::Static(content) => Cow::Borrowed(content),
FileContent::Dynamic(ref path) => {
Expand All @@ -108,7 +108,7 @@ pub struct Asset {
}

impl Asset {
pub fn content(&self) -> Fallible<Cow<[u8]>> {
pub fn content(&self) -> Fallible<Cow<'_, [u8]>> {
self.content.load()
}

Expand Down
2 changes: 1 addition & 1 deletion src/report/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ enum SanitizationContext {
}

impl SanitizationContext {
fn sanitize(self, input: &str) -> Cow<str> {
fn sanitize(self, input: &str) -> Cow<'_, str> {
match self {
SanitizationContext::Url => utf8_percent_encode(input, &REPORT_ENCODE_SET).into(),

Expand Down