Skip to content

feat: bit optimization #7

feat: bit optimization

feat: bit optimization #7

Triggered via pull request February 26, 2024 11:03
Status Success
Total duration 1m 3s
Artifacts

check.yml

on: pull_request
stable / miri
50s
stable / miri
stable / build
26s
stable / build
stable / test
14s
stable / test
stable / fmt
8s
stable / fmt
nightly / doc
19s
nightly / doc
Matrix: clippy
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
[clippy] src/protocol/serializer.rs#L108: src/protocol/serializer.rs#L108
warning: unneeded unit return type --> src/protocol/serializer.rs:108:56 | 108 | pub fn serialize_token(&mut self, token: Delimiter) -> () { | ^^^^^^ help: remove the `-> ()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
[clippy] src/protocol/deserializer.rs#L123: src/protocol/deserializer.rs#L123
warning: question mark operator is useless here --> src/protocol/deserializer.rs:123:9 | 123 | Ok(self.eat_bit()?) | ^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `self.eat_bit()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark = note: `#[warn(clippy::needless_question_mark)]` on by default
stable / clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: giraffate/clippy-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
[clippy] src/protocol/serializer.rs#L108: src/protocol/serializer.rs#L108
warning: unneeded unit return type --> src/protocol/serializer.rs:108:56 | 108 | pub fn serialize_token(&mut self, token: Delimiter) -> () { | ^^^^^^ help: remove the `-> ()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
[clippy] src/protocol/deserializer.rs#L123: src/protocol/deserializer.rs#L123
warning: question mark operator is useless here --> src/protocol/deserializer.rs:123:9 | 123 | Ok(self.eat_bit()?) | ^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `self.eat_bit()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark = note: `#[warn(clippy::needless_question_mark)]` on by default
beta / clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: giraffate/clippy-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.