fix: prevent panic in quantile computation with single response (#45) #69
build_ci.yaml
on: push
Rust checks
/
Rustfmt
14s
Rust checks
/
Clippy
32s
Rust checks
/
Test
2m 7s
Build and push docker image
/
build-and-push
Annotations
6 errors
|
Rust checks / Clippy
reviewdog exited with status code: 1
|
|
Rust checks / Clippy:
src/app.rs#L177
[clippy-action-output] reported by reviewdog 🐶
error: this can be `std::io::Error::other(_)`
--> src/app.rs:177:25
|
177 | None => Err(io::Error::new(io::ErrorKind::Other, "No event")),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#io_other_error
= note: `-D clippy::io-other-error` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::io_other_error)]`
help: use `std::io::Error::other`
|
177 - None => Err(io::Error::new(io::ErrorKind::Other, "No event")),
177 + None => Err(io::Error::other("No event")),
|
Raw Output:
src/app.rs:177:25:e:error: this can be `std::io::Error::other(_)`
--> src/app.rs:177:25
|
177 | None => Err(io::Error::new(io::ErrorKind::Other, "No event")),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#io_other_error
= note: `-D clippy::io-other-error` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::io_other_error)]`
help: use `std::io::Error::other`
|
177 - None => Err(io::Error::new(io::ErrorKind::Other, "No event")),
177 + None => Err(io::Error::other("No event")),
|
__END__
|
|
Rust checks / Clippy:
src/requests.rs#L651
[clippy-action-output] reported by reviewdog 🐶
error: associated function `new` is never used
--> src/requests.rs:652:12
|
651 | impl DummyTextRequestGenerator {
| ------------------------------ associated function in this implementation
652 | pub fn new() -> Self {
| ^^^
Raw Output:
src/requests.rs:651:1:e:error: associated function `new` is never used
--> src/requests.rs:652:12
|
651 | impl DummyTextRequestGenerator {
| ------------------------------ associated function in this implementation
652 | pub fn new() -> Self {
| ^^^
__END__
|
|
Rust checks / Clippy:
src/requests.rs#L649
[clippy-action-output] reported by reviewdog 🐶
error: struct `DummyTextRequestGenerator` is never constructed
--> src/requests.rs:649:12
|
649 | pub struct DummyTextRequestGenerator {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Raw Output:
src/requests.rs:649:12:e:error: struct `DummyTextRequestGenerator` is never constructed
--> src/requests.rs:649:12
|
649 | pub struct DummyTextRequestGenerator {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
__END__
|
|
Rust checks / Clippy:
src/requests.rs#L268
[clippy-action-output] reported by reviewdog 🐶
error: associated function `new` is never used
--> src/requests.rs:269:12
|
268 | impl DummyTextGenerationBackend {
| ------------------------------- associated function in this implementation
269 | pub fn new(time_to_generate: time::Duration) -> Self {
| ^^^
Raw Output:
src/requests.rs:268:1:e:error: associated function `new` is never used
--> src/requests.rs:269:12
|
268 | impl DummyTextGenerationBackend {
| ------------------------------- associated function in this implementation
269 | pub fn new(time_to_generate: time::Duration) -> Self {
| ^^^
__END__
|
|
Rust checks / Clippy:
src/requests.rs#L264
[clippy-action-output] reported by reviewdog 🐶
error: struct `DummyTextGenerationBackend` is never constructed
--> src/requests.rs:264:12
|
264 | pub struct DummyTextGenerationBackend {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[expect(dead_code)]` or `#[allow(dead_code)]`
Raw Output:
src/requests.rs:264:12:e:error: struct `DummyTextGenerationBackend` is never constructed
--> src/requests.rs:264:12
|
264 | pub struct DummyTextGenerationBackend {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[expect(dead_code)]` or `#[allow(dead_code)]`
__END__
|