Skip to content
Triggered via push October 7, 2023 21:20
Status Failure
Total duration 6m 30s
Artifacts

rust.yml

on: push
Matrix: clippy
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 16 warnings
passing a unit value to a function: src/hg_connect_http.rs#L157
error: passing a unit value to a function --> src/hg_connect_http.rs:157:9 | 157 | Ok(self.set_position(0)) | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg = note: `-D clippy::unit-arg` implied by `-D warnings` help: move the expression in front of the call and replace it with the unit literal `()` | 157 ~ self.set_position(0); 158 + Ok(()) |
consider adding a `;` to the last statement for consistent formatting: src/hg_connect_http.rs#L222
error: consider adding a `;` to the last statement for consistent formatting --> src/hg_connect_http.rs:222:21 | 222 | *self = Body::Chained(first.chain(second)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `*self = Body::Chained(first.chain(second));` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned note: the lint level is defined here --> src/main.rs:31:9 | 31 | #![deny(clippy::semicolon_if_nothing_returned)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
clippy (ubuntu-latest, 1.70.0)
Clippy had exited with the 101 exit code
passing a unit value to a function: src/hg_connect_http.rs#L157
error: passing a unit value to a function --> src/hg_connect_http.rs:157:9 | 157 | Ok(self.set_position(0)) | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg = note: `-D clippy::unit-arg` implied by `-D warnings` help: move the expression in front of the call and replace it with the unit literal `()` | 157 ~ self.set_position(0); 158 + Ok(()) |
consider adding a `;` to the last statement for consistent formatting: src/hg_connect_http.rs#L222
error: consider adding a `;` to the last statement for consistent formatting --> src/hg_connect_http.rs:222:21 | 222 | *self = Body::Chained(first.chain(second)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `*self = Body::Chained(first.chain(second));` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned note: the lint level is defined here --> src/main.rs:31:9 | 31 | #![deny(clippy::semicolon_if_nothing_returned)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
clippy (macos-latest, 1.70.0)
Clippy had exited with the 101 exit code
clippy (windows-latest, 1.70.0-x86_64-pc-windows-gnu)
Clippy had exited with the 101 exit code
panic message is not a string literal: home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4/src/lib.rs#L472
warning: panic message is not a string literal --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4/src/lib.rs:472:12 | 472 | panic!(AbortNow) | ------ ^^^^^^^^ | | | help: use std::panic::panic_any instead: `std::panic::panic_any` | = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> = note: `#[warn(non_fmt_panics)]` on by default
unused import: `removed_by_x9`: home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/implicit.rs#L17
warning: unused import: `removed_by_x9` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/implicit.rs:17:41 | 17 | use super::prepare::{not_removed_by_x9, removed_by_x9, IsolatingRunSequence}; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
method `text_range` is never used: home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/prepare.rs#L170
warning: method `text_range` is never used --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/prepare.rs:170:19 | 168 | impl IsolatingRunSequence { | ------------------------- method in this implementation 169 | /// Returns the full range of text represented by this isolating run sequence 170 | pub(crate) fn text_range(&self) -> Range<usize> { | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
use of deprecated constant `libc::ENOATTR`: ENOATTR is not available on Linux; use ENODATA instead: home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/mod.rs#L12
warning: use of deprecated constant `libc::ENOATTR`: ENOATTR is not available on Linux; use ENODATA instead --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/mod.rs:12:56 | 12 | pub const ENOATTR: ::libc::c_int = ::libc::ENOATTR; | ^^^^^^^ ... 37 | / platforms! { 38 | | "android"; "linux"; "macos" => linux_macos, 39 | | "freebsd"; "netbsd" => bsd 40 | | } | |_- in this macro invocation | = note: `#[warn(deprecated)]` on by default = note: this warning originates in the macro `platforms` (in Nightly builds, run with -Z macro-backtrace for more info)
use of deprecated macro `try`: use the `?` operator instead: home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs#L27
warning: use of deprecated macro `try`: use the `?` operator instead --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs:27:9 | 27 | try!(self.writer.write_all(&buf[..n])); | ^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated macro `try`: use the `?` operator instead: home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs#L26
warning: use of deprecated macro `try`: use the `?` operator instead --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs:26:17 | 26 | let n = try!(self.reader.read(buf)); | ^^^
panic message is not a string literal: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4/src/lib.rs#L472
warning: panic message is not a string literal --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4/src/lib.rs:472:12 | 472 | panic!(AbortNow) | ------ ^^^^^^^^ | | | help: use std::panic::panic_any instead: `std::panic::panic_any` | = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> = note: `#[warn(non_fmt_panics)]` on by default
unused import: `removed_by_x9`: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/implicit.rs#L17
warning: unused import: `removed_by_x9` --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/implicit.rs:17:41 | 17 | use super::prepare::{not_removed_by_x9, removed_by_x9, IsolatingRunSequence}; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
method `text_range` is never used: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/prepare.rs#L170
warning: method `text_range` is never used --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-bidi-0.3.13/src/prepare.rs:170:19 | 168 | impl IsolatingRunSequence { | ------------------------- method in this implementation 169 | /// Returns the full range of text represented by this isolating run sequence 170 | pub(crate) fn text_range(&self) -> Range<usize> { | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
use of deprecated type alias `libc::uint32_t`: Use u32 instead.: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs#L1
warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs:1:52 | 1 | use libc::{c_char, c_int, c_void, size_t, ssize_t, uint32_t}; | ^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated type alias `libc::uint32_t`: Use u32 instead.: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs#L26
warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs:26:23 | 26 | position: uint32_t, | ^^^^^^^^
use of deprecated type alias `libc::uint32_t`: Use u32 instead.: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs#L46
warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs:46:23 | 46 | position: uint32_t, | ^^^^^^^^
use of deprecated type alias `libc::uint32_t`: Use u32 instead.: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs#L82
warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs:82:23 | 82 | position: uint32_t, | ^^^^^^^^
use of deprecated type alias `libc::uint32_t`: Use u32 instead.: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs#L102
warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xattr-0.2.3/src/sys/linux_macos/macos.rs:102:23 | 102 | position: uint32_t, | ^^^^^^^^
use of deprecated macro `try`: use the `?` operator instead: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs#L27
warning: use of deprecated macro `try`: use the `?` operator instead --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs:27:9 | 27 | try!(self.writer.write_all(&buf[..n])); | ^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated macro `try`: use the `?` operator instead: Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs#L26
warning: use of deprecated macro `try`: use the `?` operator instead --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tee-0.1.0/src/lib.rs:26:17 | 26 | let n = try!(self.reader.read(buf)); | ^^^