Skip to content

Commit 2eb688f

Browse files
authored
Merge pull request #779 from jieyouxu/fix-warnings
Fix mismatched lifetime syntaxes
2 parents 5827aec + 68d4a50 commit 2eb688f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/assets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ enum FileContent {
9090
}
9191

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

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

src/report/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ enum SanitizationContext {
133133
}
134134

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

0 commit comments

Comments
 (0)