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:
@ -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
|
||||
|
Reference in New Issue
Block a user