Skip to content

build: feature(impl_trait_in_assoc_type) #223

build: feature(impl_trait_in_assoc_type)

build: feature(impl_trait_in_assoc_type) #223

Triggered via push January 13, 2024 18:03
Status Success
Total duration 2m 58s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
deref which would be done by auto-deref: src/main.rs#L60
warning: deref which would be done by auto-deref --> src/main.rs:60:30 | 60 | 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
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: i64) -> Option<Arc<Uuid>> { | ^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unused variable: `address`: src/commands/manage.rs#L25
warning: unused variable: `address` --> src/commands/manage.rs:25:41 | 25 | ManageCommand::NewProfile { name, address } => {} | ^^^^^^^ help: try ignoring the field: `address: _`
unused variable: `name`: src/commands/manage.rs#L25
warning: unused variable: `name` --> src/commands/manage.rs:25:35 | 25 | ManageCommand::NewProfile { name, address } => {} | ^^^^ help: try ignoring the field: `name: _` | = note: `#[warn(unused_variables)]` on by default
this `else { if .. }` block can be collapsed: src/bot.rs#L125
warning: this `else { if .. }` block can be collapsed --> src/bot.rs:125:12 | 125 | } else { | ____________^ 126 | | if is_webp { 127 | | self.inner.send_sticker(chat_id, photo.clone()).await 128 | | } else { ... | 135 | | } 136 | | }; | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if = note: `#[warn(clippy::collapsible_else_if)]` on by default help: collapse nested if block | 125 ~ } else if is_webp { 126 + self.inner.send_sticker(chat_id, photo.clone()).await 127 + } else { 128 + let send = self.inner.send_photo(chat_id, photo.clone()); 129 + if let Some(reply) = reply { 130 + send.reply_to_message_id(MessageId(reply)).await 131 + } else { 132 + send.await 133 + } 134 ~ }; |
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/