Skip to content

Solve warnings that appears during compilation #4

@CarlosCraveiro

Description

@CarlosCraveiro

[WARNINGS] Solve warnings that appears during compilation

The Warnings

During compilation process, rust compiler generated 2 warnings as follows:

warning: unused variable: `res`
   --> src/run_codes/mod.rs:102:6
    |
102 |     let res = client
    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: associated function `read_credentials_locally` is never used
  --> src/utils/mod.rs:85:9
   |
85 |     pub fn read_credentials_locally(project: Project) -> Option<UserCredentials> {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `run-cli` (bin "run-cli") generated 2 warnings

Sugestion

Erase line 102

let res = client

Add macro to ignore unused function

pub fn read_credentials_locally(project: Project) -> Option<UserCredentials>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions