refactor: update figment, senerity, deps #47
Annotations
6 warnings
deref which would be done by auto-deref:
src/main.rs#L54
warning: deref which would be done by auto-deref
--> src/main.rs:54:30
|
54 | let locale = Locale::new(&*CONFIG.locale)?;
| ^^^^^^^^^^^^^^^ help: try: `&CONFIG.locale`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
accessing first element with `msg.attachments.get(0)`:
src/handlers/send.rs#L42
warning: accessing first element with `msg.attachments.get(0)`
--> src/handlers/send.rs:42:25
|
42 | if let Some(attach) = msg.attachments.get(0) {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `msg.attachments.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
useless conversion to the same type: `arcstr::ArcStr`:
src/commands.rs#L48
warning: useless conversion to the same type: `arcstr::ArcStr`
--> src/commands.rs:48:31
|
48 | handlers::receive::add(&ArcStr::from(address)).await?;
| ^^^^^^^^^^^^^^^^^^^^^ help: consider removing `ArcStr::from()`: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `arcstr::ArcStr`:
src/commands.rs#L41
warning: useless conversion to the same type: `arcstr::ArcStr`
--> src/commands.rs:41:43
|
41 | handlers::receive::change(&before, &ArcStr::from(address)).await?;
| ^^^^^^^^^^^^^^^^^^^^^ help: consider removing `ArcStr::from()`: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
method `room_id` is never used:
src/config.rs#L32
warning: method `room_id` is never used
--> src/config.rs:32:10
|
27 | impl Config {
| ----------- method in this implementation
...
32 | pub fn room_id(&self, target: u64) -> Option<Arc<Uuid>> {
| ^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|