Skip to content

Update README.md

Update README.md #71

Triggered via push December 5, 2023 03:43
Status Failure
Total duration 25s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

coverage.yml

on: push
Matrix: build_and_test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 16 warnings
nightly - x86_64-unknown-linux-gnu
Couldn't find a release tarball containing binaries for latest
nightly - x86_64-unknown-linux-gnu
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions-rs/toolchain@v1, actions-rs/tarpaulin@v0.1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
nightly - x86_64-unknown-linux-gnu
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/
nightly - x86_64-unknown-linux-gnu
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/
nightly - x86_64-unknown-linux-gnu
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/
nightly - x86_64-unknown-linux-gnu
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/
useless use of `vec!`: src/proxy.rs#L268
warning: useless use of `vec!` --> src/proxy.rs:268:20 | 268 | let urls = vec![ | ____________________^ 269 | | "/ftrain/big-data-small-effort-b62607a43a8c", 270 | | "/shawn-shi/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8", 271 | | ]; | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec help: you can use an array directly | 268 ~ let urls = ["/ftrain/big-data-small-effort-b62607a43a8c", 269 ~ "/shawn-shi/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8"]; |
useless use of `vec!`: src/proxy.rs#L255
warning: useless use of `vec!` --> src/proxy.rs:255:20 | 255 | let urls = vec![ | ____________________^ 256 | | "/@ftrain/big-data-small-effort-b62607a43a8c", 257 | | "/@shawn-shi/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8", 258 | | "/", 259 | | "/asset/medium/1*LY2ohYsNa9nOV1Clko3zJA.png", 260 | | ]; | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec = note: `#[warn(clippy::useless_vec)]` on by default help: you can use an array directly | 255 ~ let urls = ["/@ftrain/big-data-small-effort-b62607a43a8c", 256 + "/@shawn-shi/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8", 257 + "/", 258 ~ "/asset/medium/1*LY2ohYsNa9nOV1Clko3zJA.png"]; |
accessing first element with `splits.get(0)`: src/data.rs#L195
warning: accessing first element with `splits.get(0)` --> src/data.rs:195:13 | 195 | splits.get(0).unwrap() | ^^^^^^^^^^^^^ help: try: `splits.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
fields `p` and `gists` are never read: src/post.rs#L37
warning: fields `p` and `gists` are never read --> src/post.rs:37:5 | 35 | struct Markup<'a, 'b> { | ------ fields in this struct 36 | markup: &'a GetPostPostContentBodyModelParagraphsMarkups, 37 | p: &'a GetPostPostContentBodyModelParagraphs, | ^ 38 | pos_type: PostitionType, 39 | gists: &'b Option<Vec<(String, crate::data::GistContent)>>, | ^^^^^
field `cache` is never read: src/data.rs#L36
warning: field `cache` is never read --> src/data.rs:36:5 | 34 | pub struct Data { | ---- field in this struct 35 | pub client: Client, 36 | cache: Db, | ^^^^^ | = note: `Data` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
variable does not need to be mutable: /home/runner/work/libmedium/libmedium/target/debug/build/sailfish-compiler-20ab31de03018ef6/out/templates/post-7ba4236f6581f537#L62
warning: variable does not need to be mutable --> /home/runner/work/libmedium/libmedium/target/debug/build/sailfish-compiler-20ab31de03018ef6/out/templates/post-7ba4236f6581f537:62:9 | 62 | let mut open_list = false; | ----^^^^^^^^^ | | | help: remove this `mut`
unused variable: `open_list`: /home/runner/work/libmedium/libmedium/target/debug/build/sailfish-compiler-20ab31de03018ef6/out/templates/post-7ba4236f6581f537#L62
warning: unused variable: `open_list` --> /home/runner/work/libmedium/libmedium/target/debug/build/sailfish-compiler-20ab31de03018ef6/out/templates/post-7ba4236f6581f537:62:13 | 62 | let mut open_list = false; | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_open_list`
unused variable: `gists`: src/proxy.rs#L124
warning: unused variable: `gists` --> src/proxy.rs:124:9 | 124 | pub gists: Option<Vec<(String, crate::data::GistContent)>>, | ^^^^^ help: try ignoring the field: `gists: _`
unused variable: `id`: src/proxy.rs#L123
warning: unused variable: `id` --> src/proxy.rs:123:9 | 123 | pub id: String, | ^^ help: try ignoring the field: `id: _` | = note: `#[warn(unused_variables)]` on by default
use of deprecated method `chrono::TimeZone::timestamp_millis`: use `timestamp_millis_opt()` instead: src/proxy.rs#L206
warning: use of deprecated method `chrono::TimeZone::timestamp_millis`: use `timestamp_millis_opt()` instead --> src/proxy.rs:206:10 | 206 | .timestamp_millis(post_data.created_at) | ^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
variable does not need to be mutable: src/data.rs#L203
warning: variable does not need to be mutable --> src/data.rs:203:13 | 203 | let mut id = Self::get_gist_id(&gist_url).to_owned(); | ----^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default