We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mismatched_lifetime_syntaxes
1 parent deae34b commit c4f7f71Copy full SHA for c4f7f71
src/github.rs
@@ -92,7 +92,7 @@ impl GithubClient {
92
req: Request,
93
sleep: Duration,
94
remaining_attempts: u32,
95
- ) -> BoxFuture<Result<Response, reqwest::Error>> {
+ ) -> BoxFuture<'_, Result<Response, reqwest::Error>> {
96
#[derive(Debug, serde::Deserialize)]
97
struct RateLimit {
98
#[allow(unused)]
src/utils.rs
@@ -1,7 +1,7 @@
1
use std::borrow::Cow;
2
3
/// Pluralize (add an 's' sufix) to `text` based on `count`.
4
-pub fn pluralize(text: &str, count: usize) -> Cow<str> {
+pub fn pluralize(text: &str, count: usize) -> Cow<'_, str> {
5
if count == 1 {
6
text.into()
7
} else {
0 commit comments