summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-25 12:04:06 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-25 12:04:06 -0400
commit667c33f2e8c4fee80e02438feb4ac0838e02570d (patch)
tree8924548bcc83da3905365c2af8f71ed5309f1250 /src
parentfe99056b24034f59516b4da67cab756a05895e8e (diff)
Remove some extraneous turbofish operators.
Diffstat (limited to 'src')
-rw-r--r--src/clock.rs2
-rw-r--r--src/events/extract.rs3
-rw-r--r--src/id.rs2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/clock.rs b/src/clock.rs
index 4774613..9ffef82 100644
--- a/src/clock.rs
+++ b/src/clock.rs
@@ -32,7 +32,7 @@ where
// This is purely for ergonomics: it allows `RequestedAt` to be extracted
// without having to wrap it in `Extension<>`. Callers _can_ still do that,
// but they aren't forced to.
- let Extension(requested_at) = Extension::<Self>::from_request_parts(parts, state).await?;
+ let Extension(requested_at) = Extension::from_request_parts(parts, state).await?;
Ok(requested_at)
}
diff --git a/src/events/extract.rs b/src/events/extract.rs
index 44bcc71..e3021e2 100644
--- a/src/events/extract.rs
+++ b/src/events/extract.rs
@@ -56,8 +56,7 @@ where
// This is purely for ergonomics: it allows `RequestedAt` to be extracted
// without having to wrap it in `Extension<>`. Callers _can_ still do that,
// but they aren't forced to.
- let TypedHeader(requested_at) =
- TypedHeader::<Self>::from_request_parts(parts, state).await?;
+ let TypedHeader(requested_at) = TypedHeader::from_request_parts(parts, state).await?;
Ok(requested_at)
}
diff --git a/src/id.rs b/src/id.rs
index aec7a67..d79f600 100644
--- a/src/id.rs
+++ b/src/id.rs
@@ -64,7 +64,7 @@ impl Id {
.filter_map(|_| ALPHABET.choose(&mut rng)) /* usize -> &char */
.copied(), /* &char -> char */
)
- .collect::<String>();
+ .collect();
T::from(Self(id))
}
}