Skip to content

Commit 93e6282

Browse files
authored
Merge pull request #770 from hatoo/fix-warning
fix rustc warning
2 parents b152eff + f68d009 commit 93e6282

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ impl Client {
440440
Ok(())
441441
}
442442

443-
pub fn generate_url(&self, rng: &mut Pcg64Si) -> Result<(Cow<Url>, Pcg64Si), ClientError> {
443+
pub fn generate_url(&self, rng: &mut Pcg64Si) -> Result<(Cow<'_, Url>, Pcg64Si), ClientError> {
444444
let snapshot = *rng;
445445
Ok((self.url_generator.generate(rng)?, snapshot))
446446
}

src/url_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl UrlGenerator {
3838
Self::Dynamic(regex)
3939
}
4040

41-
pub fn generate<R: Rng>(&self, rng: &mut R) -> Result<Cow<Url>, UrlGeneratorError> {
41+
pub fn generate<R: Rng>(&self, rng: &mut R) -> Result<Cow<'_, Url>, UrlGeneratorError> {
4242
match self {
4343
Self::Static(url) => Ok(Cow::Borrowed(url)),
4444
Self::MultiStatic(urls) => {

0 commit comments

Comments
 (0)