Skip to content

Support Bluesky video. #166

Support Bluesky video.

Support Bluesky video. #166

Triggered via push October 17, 2024 22:34
Status Success
Total duration 4m 59s
Artifacts

debug.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

24 warnings
the borrowed expression implements the required traits: src/sites/mod.rs#L1420
warning: the borrowed expression implements the required traits --> src/sites/mod.rs:1420:18 | 1420 | .get(&format!( | __________________^ 1421 | | "https://www.weasyl.com/api/submissions/{}/view", 1422 | | sub_id 1423 | | )) | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 1420 ~ .get(format!( 1421 + "https://www.weasyl.com/api/submissions/{}/view", 1422 + sub_id 1423 ~ )) |
the borrowed expression implements the required traits: src/sites/mod.rs#L1310
warning: the borrowed expression implements the required traits --> src/sites/mod.rs:1310:18 | 1310 | .get(&format!("{}/api/v1/statuses/{}", base, status_id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}/api/v1/statuses/{}", base, status_id)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: src/sites/mod.rs#L1279
warning: the borrowed expression implements the required traits --> src/sites/mod.rs:1279:19 | 1279 | .head(&format!("{}/api/v1/instance", base)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}/api/v1/instance", base)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: src/execute/telegram/handlers/error_reply.rs#L76
warning: the borrowed expression implements the required traits --> src/execute/telegram/handlers/error_reply.rs:76:19 | 76 | .post(&format!( | ___________________^ 77 | | "https://sentry.io/api/0/projects/{}/{}/user-feedback/", 78 | | organization, project 79 | | )) | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default help: change this to | 76 ~ .post(format!( 77 + "https://sentry.io/api/0/projects/{}/{}/user-feedback/", 78 + organization, project 79 ~ )) |
fields `site`, `link`, and `duration` are never read: src/utils.rs#L64
warning: fields `site`, `link`, and `duration` are never read --> src/utils.rs:64:9 | 62 | pub struct SiteCallback<'a> { | ------------ fields in this struct 63 | /// The site loader that was used to check for images. 64 | pub site: &'a BoxedSite, | ^^^^ 65 | /// The link that was loaded. 66 | pub link: &'a str, | ^^^^ 67 | /// The amount of time it took for the site to load data from the URL. 68 | pub duration: i64, | ^^^^^^^^
fields `id`, `post_url`, and `thumb` are never read: src/models/mod.rs#L940
warning: fields `id`, `post_url`, and `thumb` are never read --> src/models/mod.rs:940:9 | 939 | pub struct CachedPost { | ---------- fields in this struct 940 | pub id: i32, | ^^ 941 | pub post_url: String, | ^^^^^^^^ 942 | pub thumb: bool, | ^^^^^
fields `source`, `thumb_url`, and `created_at` are never read: src/models/mod.rs#L703
warning: fields `source`, `thumb_url`, and `created_at` are never read --> src/models/mod.rs:703:9 | 700 | pub struct Video { | ----- fields in this struct ... 703 | pub source: String, | ^^^^^^ ... 708 | pub thumb_url: Option<String>, | ^^^^^^^^^ 709 | pub display_url: String, 710 | pub created_at: chrono::NaiveDateTime, | ^^^^^^^^^^
fields `id` and `inserted_at` are never read: src/models/mod.rs#L575
warning: fields `id` and `inserted_at` are never read --> src/models/mod.rs:575:9 | 574 | pub struct MediaGroup { | ---------- fields in this struct 575 | pub id: i32, | ^^ 576 | pub media_group_id: String, 577 | pub inserted_at: chrono::DateTime<chrono::Utc>, | ^^^^^^^^^^^
field `id` is never read: src/models/mod.rs#L432
warning: field `id` is never read --> src/models/mod.rs:432:9 | 431 | pub struct TwitterAuth { | ----------- field in this struct 432 | pub id: i32, | ^^
field `twitter_disable` is never read: src/execute/telegram/mod.rs#L79
warning: field `twitter_disable` is never read --> src/execute/telegram/mod.rs:79:9 | 69 | pub struct Config { | ------ field in this struct ... 79 | pub twitter_disable: bool, | ^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
this function depends on never type fallback being `()`: src/web/manage.rs#L26
warning: this function depends on never type fallback being `()` --> src/web/manage.rs:26:1 | 26 | / async fn get_chat( 27 | | bot: &tgbotapi::Telegram, 28 | | redis: &mut redis::aio::ConnectionManager, 29 | | chat_id: i64, 30 | | ) -> Result<tgbotapi::Chat, actix_web::Error> { | |_____________________________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/web/manage.rs:56:10 | 56 | .set_ex(cache_key, data, 60 * 60 * 24) | ^^^^^^
this function depends on never type fallback being `()`: src/execute/telegram/jobs/channel.rs#L319
warning: this function depends on never type fallback being `()` --> src/execute/telegram/jobs/channel.rs:319:1 | 319 | / async fn already_had_source( 320 | | redis: &redis::aio::ConnectionManager, 321 | | message: &tgbotapi::Message, 322 | | matches: &[fuzzysearch::File], 323 | | ) -> Result<bool, Error> { | |________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/execute/telegram/jobs/channel.rs:340:11 | 340 | redis.expire(&key, 300).await?; | ^^^^^^
this function depends on never type fallback being `()`: src/execute/telegram/handlers/settings.rs#L216
warning: this function depends on never type fallback being `()` --> src/execute/telegram/handlers/settings.rs:216:1 | 216 | / async fn inline_history( 217 | | cx: &Context, 218 | | callback_query: &CallbackQuery, 219 | | data: &str, 220 | | ) -> Result<Status, Error> { | |__________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/execute/telegram/handlers/settings.rs:250:18 | 250 | .del(format!("inline-history:{}", callback_query.from.id)) | ^^^
this function depends on never type fallback being `()`: src/execute/telegram/handlers/inline_handler.rs#L793
warning: this function depends on never type fallback being `()` --> src/execute/telegram/handlers/inline_handler.rs:793:1 | 793 | / async fn set_url_cache_data( 794 | | url: &str, 795 | | post_info: &PostInfo, 796 | | redis: &mut redis::aio::ConnectionManager, 797 | | ) -> Result<(), Error> { | |______________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/execute/telegram/handlers/inline_handler.rs:814:11 | 814 | redis.set_ex(key, data, 60 * 60 * 24).await?; | ^^^^^^
this function depends on never type fallback being `()`: src/execute/telegram/handlers/inline_handler.rs#L183
warning: this function depends on never type fallback being `()` --> src/execute/telegram/handlers/inline_handler.rs:183:1 | 183 | / async fn add_inline_history( 184 | | user: i64, 185 | | links: &[Cow<'_, str>], 186 | | redis: &mut redis::aio::ConnectionManager, 187 | | ) -> Result<(), Error> { | |______________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/execute/telegram/handlers/inline_handler.rs:205:11 | 205 | redis.expire(key, 60 * 60 * 24).await?; | ^^^^^^
this function depends on never type fallback being `()`: src/execute/telegram/handlers/inline_handler.rs#L165
warning: this function depends on never type fallback being `()` --> src/execute/telegram/handlers/inline_handler.rs:165:1 | 165 | / async fn get_inline_history( 166 | | user: i64, 167 | | redis: &mut redis::aio::ConnectionManager, 168 | | ) -> Result<Vec<String>, Error> { | |_______________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/execute/telegram/handlers/inline_handler.rs:176:11 | 176 | redis.zrembyscore(&key, "-inf", now).await?; | ^^^^^^^^^^^
this function depends on never type fallback being `()`: src/execute/telegram/handlers/inline_handler.rs#L1200
warning: this function depends on never type fallback being `()` --> src/execute/telegram/handlers/inline_handler.rs:1200:1 | 1200 | / async fn cache_video( 1201 | | redis: &redis::aio::ConnectionManager, 1202 | | display_name: &str, 1203 | | sent_as: &SentAs, 1204 | | ) -> Result<(), Error> { | |______________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/execute/telegram/handlers/inline_handler.rs:1209:10 | 1209 | .set_ex(format!("video:{}", display_name), data, 60 * 60 * 24) | ^^^^^^
this function depends on never type fallback being `()`: src/utils.rs#L125
warning: this function depends on never type fallback being `()` --> src/utils.rs:125:1 | 125 | / async fn set_cached_images( 126 | | site_name: &str, 127 | | url_id: &str, 128 | | callback: &SiteCallback<'_>, 129 | | redis: &mut redis::aio::ConnectionManager, 130 | | ) -> Result<(), Error> { | |______________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/utils.rs:149:11 | 149 | redis.set_ex(key, data, 60 * 60).await?; | ^^^^^^
this function depends on never type fallback being `()`: src/models/mod.rs#L1006
warning: this function depends on never type fallback being `()` --> src/models/mod.rs:1006:5 | 1006 | / pub async fn set( 1007 | | redis: &redis::aio::ConnectionManager, 1008 | | file_id: &str, 1009 | | hash: i64, 1010 | | ) -> Result<(), Error> { | |__________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/models/mod.rs:1013:15 | 1013 | redis.set_ex(file_id, hash, 60 * 60 * 24 * 7).await?; | ^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: Swatinem/rust-cache@v1, 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/
clippy_check
The following actions use a deprecated Node.js version and will be forced to run on node20: Swatinem/rust-cache@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
clippy_check
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_check
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/