1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

chore: address clippy warnings

This commit is contained in:
Rob Ede
2025-02-19 22:24:56 +00:00
parent bb18fd8f66
commit 34ab565683
5 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@ pub struct Human<'a>(&'a StarWarsChar);
/// A humanoid creature in the Star Wars universe.
#[Object]
impl<'a> Human<'a> {
impl Human<'_> {
/// The id of the human.
async fn id(&self) -> &str {
self.0.id
@ -63,7 +63,7 @@ pub struct Droid<'a>(&'a StarWarsChar);
/// A mechanical creature in the Star Wars universe.
#[Object]
impl<'a> Droid<'a> {
impl Droid<'_> {
/// The id of the droid.
async fn id(&self) -> &str {
self.0.id