Skip to content

Merge pull request #74 from sminez/utf8-input #237

Merge pull request #74 from sminez/utf8-input

Merge pull request #74 from sminez/utf8-input #237

Triggered via push January 15, 2025 15:40
Status Success
Total duration 1m 0s
Artifacts

rust.yml

on: push
Ensure rustfmt is happy
13s
Ensure rustfmt is happy
Lint the codebase with clippy
32s
Lint the codebase with clippy
Check doc links are valid
32s
Check doc links are valid
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Ensure rustfmt is happy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
this `match` expression can be replaced with `?`: src/ziplist.rs#L119
warning: this `match` expression can be replaced with `?` --> src/ziplist.rs:119:21 | 119 | let focus = match it.next() { | _____________________^ 120 | | Some(t) => t, 121 | | None => return None, 122 | | }; | |_________^ help: try instead: `it.next()?` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark note: the lint level is defined here --> src/lib.rs:5:5 | 5 | clippy::style, | ^^^^^^^^^^^^^ = note: `#[warn(clippy::question_mark)]` implied by `#[warn(clippy::style)]`
needless call to `as_bytes()`: src/fsys/buffer.rs#L369
warning: needless call to `as_bytes()` --> src/fsys/buffer.rs:369:24 | 369 | stat.n_bytes = content.as_bytes().len() as u64; | ^^^^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `content.len()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes note: the lint level is defined here --> src/lib.rs:3:5 | 3 | clippy::complexity, | ^^^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::needless_as_bytes)]` implied by `#[warn(clippy::complexity)]`
this `match` expression can be replaced with `?`: src/ziplist.rs#L119
warning: this `match` expression can be replaced with `?` --> src/ziplist.rs:119:21 | 119 | let focus = match it.next() { | _____________________^ 120 | | Some(t) => t, 121 | | None => return None, 122 | | }; | |_________^ help: try instead: `it.next()?` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark note: the lint level is defined here --> src/lib.rs:5:5 | 5 | clippy::style, | ^^^^^^^^^^^^^ = note: `#[warn(clippy::question_mark)]` implied by `#[warn(clippy::style)]`
needless call to `as_bytes()`: src/fsys/buffer.rs#L369
warning: needless call to `as_bytes()` --> src/fsys/buffer.rs:369:24 | 369 | stat.n_bytes = content.as_bytes().len() as u64; | ^^^^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `content.len()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes note: the lint level is defined here --> src/lib.rs:3:5 | 3 | clippy::complexity, | ^^^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::needless_as_bytes)]` implied by `#[warn(clippy::complexity)]`
this `match` expression can be replaced with `?`: crates/ninep/src/server.rs#L824
warning: this `match` expression can be replaced with `?` --> crates/ninep/src/server.rs:824:42 | 824 | let mut stream = match self.stream.try_clone() { | __________________________________________^ 825 | | Ok(stream) => stream, 826 | | Err(err) => return Err(err), 827 | | }; | |_________________________^ help: try instead: `self.stream.try_clone()?` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark note: the lint level is defined here --> crates/ninep/src/lib.rs:5:5 | 5 | clippy::style, | ^^^^^^^^^^^^^ = note: `#[warn(clippy::question_mark)]` implied by `#[warn(clippy::style)]`
Lint the codebase with clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check doc links are valid
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Rust nightly
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Rust stable
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Rust beta
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636