Cargo clippy #14

Open
opened 2022-01-13 15:26:37 +01:00 by darnuria · 0 comments
darnuria commented 2022-01-13 15:26:37 +01:00 (Migrated from code.up8.edu)

clippy montre bien ton petit soucis de dead_code. Mais qui est pas tant problématique vu que c'est a cause des web_socket qui etaient pas pret pour le rendu.

cargo clippy
    Checking matter_bot v0.1.0 (/home/darnuria/coursRustP8/2021_l2_rust/projets/kennel_anri)
warning: function is never used: `affiche_message_erreur`
  --> src/erreur.rs:12:8
   |
12 | pub fn affiche_message_erreur(message: &str) {
   |        ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: struct is never constructed: `ConnectionInfoWebsocket`
  --> src/mattermost.rs:11:12
   |
11 | pub struct ConnectionInfoWebsocket {
   |            ^^^^^^^^^^^^^^^^^^^^^^^

warning: function is never used: `team_info`
   --> src/mattermost.rs:176:14
    |
176 | pub async fn team_info(api: &mattermost_api::client::Mattermost, equipe: &str) {
    |              ^^^^^^^^^

warning: function is never used: `connect_websocket`
   --> src/mattermost.rs:189:14
    |
189 | pub async fn connect_websocket(
    |              ^^^^^^^^^^^^^^^^^

warning: function is never used: `start_mattermost`
   --> src/mattermost.rs:215:14
    |
215 | pub async fn start_mattermost(connection: ConnectionInfoWebsocket) {
    |              ^^^^^^^^^^^^^^^^

warning: `matter_bot` (bin "matter_bot") generated 5 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 3.22s
clippy montre bien ton petit soucis de dead_code. Mais qui est pas tant problématique vu que c'est a cause des web_socket qui etaient pas pret pour le rendu. ```rust cargo clippy Checking matter_bot v0.1.0 (/home/darnuria/coursRustP8/2021_l2_rust/projets/kennel_anri) warning: function is never used: `affiche_message_erreur` --> src/erreur.rs:12:8 | 12 | pub fn affiche_message_erreur(message: &str) { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: struct is never constructed: `ConnectionInfoWebsocket` --> src/mattermost.rs:11:12 | 11 | pub struct ConnectionInfoWebsocket { | ^^^^^^^^^^^^^^^^^^^^^^^ warning: function is never used: `team_info` --> src/mattermost.rs:176:14 | 176 | pub async fn team_info(api: &mattermost_api::client::Mattermost, equipe: &str) { | ^^^^^^^^^ warning: function is never used: `connect_websocket` --> src/mattermost.rs:189:14 | 189 | pub async fn connect_websocket( | ^^^^^^^^^^^^^^^^^ warning: function is never used: `start_mattermost` --> src/mattermost.rs:215:14 | 215 | pub async fn start_mattermost(connection: ConnectionInfoWebsocket) { | ^^^^^^^^^^^^^^^^ warning: `matter_bot` (bin "matter_bot") generated 5 warnings Finished dev [unoptimized + debuginfo] target(s) in 3.22s ```
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Paris8/MatterBot#14
No description provided.