Skip to content

Commit c4f7f71

Browse files
committed
Fix mismatched_lifetime_syntaxes warnings
1 parent deae34b commit c4f7f71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl GithubClient {
9292
req: Request,
9393
sleep: Duration,
9494
remaining_attempts: u32,
95-
) -> BoxFuture<Result<Response, reqwest::Error>> {
95+
) -> BoxFuture<'_, Result<Response, reqwest::Error>> {
9696
#[derive(Debug, serde::Deserialize)]
9797
struct RateLimit {
9898
#[allow(unused)]

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::borrow::Cow;
22

33
/// Pluralize (add an 's' sufix) to `text` based on `count`.
4-
pub fn pluralize(text: &str, count: usize) -> Cow<str> {
4+
pub fn pluralize(text: &str, count: usize) -> Cow<'_, str> {
55
if count == 1 {
66
text.into()
77
} else {

0 commit comments

Comments
 (0)