Skip to content

Revert "feat: build new api" #12

Revert "feat: build new api"

Revert "feat: build new api" #12

GitHub Actions / clippy succeeded Jan 22, 2024 in 1s

clippy

3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 3
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 104 in src/client/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

single-character string constant used as pattern

warning: single-character string constant used as pattern
   --> src/client/mod.rs:104:50
    |
104 |         let token_no_bearer = access_token.split(" ").collect::<Vec<&str>>()[1];
    |                                                  ^^^ help: try using a `char` instead: `' '`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
    = note: `#[warn(clippy::single_char_pattern)]` on by default

Check warning on line 217 in src/android/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variant name starts with the enum's name

warning: variant name starts with the enum's name
   --> src/android/mod.rs:217:5
    |
217 |     VisibilityUnspecified,
    |     ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names

Check warning on line 210 in src/android/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

all variants have the same prefix: `Priority`

warning: all variants have the same prefix: `Priority`
   --> src/android/mod.rs:203:1
    |
203 | / pub enum NotificationPriority {
204 | |     PriorityUnspecified,
205 | |     PriorityMin,
206 | |     PriorityLow,
...   |
209 | |     PriorityMax,
210 | | }
    | |_^
    |
    = help: remove the prefixes and use full paths to the variants instead of glob imports
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
    = note: `#[warn(clippy::enum_variant_names)]` on by default