Skip to content

warning: unused variable: path #4

@drennvinn

Description

@drennvinn

This warning is caused by the path params in tweet.rs and like.rs.
you may avoid it by adding _ prefix to each params.
pub async fn get(_path: Path<(String,)>) ...

https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions