fix(dom): ensure consistent width for braille characters #119
Annotations
10 warnings
|
src/backend/utils.rs#L170
warning: enclosing `Ok` and `?` operator are unneeded
--> src/backend/utils.rs:170:5
|
170 | / Ok(get_window()?
171 | | .performance()
172 | | .ok_or(Error::UnableToRetrieveComponent("Performance"))?)
| |_________________________________________________________________^
|
= 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
help: remove the enclosing `Ok` and `?` operator
|
170 ~ get_window()?
171 | .performance()
172 ~ .ok_or(Error::UnableToRetrieveComponent("Performance"))
|
|
|
src/backend/utils.rs#L123
warning: used `unwrap()` on a `Result` value
--> src/backend/utils.rs:123:26
|
123 | (s.width().unwrap(), s.height().unwrap())
| ^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
|
src/backend/utils.rs#L123
warning: used `unwrap()` on a `Result` value
--> src/backend/utils.rs:123:6
|
123 | (s.width().unwrap(), s.height().unwrap())
| ^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
|
src/backend/utils.rs#L122
warning: used `unwrap()` on an `Option` value
--> src/backend/utils.rs:122:13
|
122 | let s = web_sys::window().unwrap().screen().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is `None`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
|
src/backend/utils.rs#L122
warning: used `unwrap()` on a `Result` value
--> src/backend/utils.rs:122:13
|
122 | let s = web_sys::window().unwrap().screen().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
|
src/backend/utils.rs#L99
warning: used `unwrap()` on an `Option` value
--> src/backend/utils.rs:99:54
|
99 | let color = ansi_to_rgb(color).unwrap_or_else(|| ansi_to_rgb(fallback_color).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is `None`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
|
src/backend/dom.rs#L38
warning: doc list item overindented
--> src/backend/dom.rs:38:9
|
38 | /// `"_ratzilla_grid"`.
| ^^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
= note: `#[warn(clippy::doc_overindented_list_items)]` on by default
|
|
src/backend/canvas.rs#L408
warning: used `unwrap()` on an `Option` value
--> src/backend/canvas.rs:408:21
|
408 | let color = self.debug_mode.as_ref().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is `None`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> src/lib.rs:1:23
|
1 | #![warn(missing_docs, clippy::unwrap_used)]
| ^^^^^^^^^^^^^^^^^^^
|
|
src/backend/canvas.rs#L276
warning: doc list item without indentation
--> src/backend/canvas.rs:276:9
|
276 | /// or when `always_clip_cells` is enabled.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
276 | /// or when `always_clip_cells` is enabled.
| +++
|
|
src/error.rs#L58
warning: this can be `std::io::Error::other(_)`
--> src/error.rs:58:9
|
58 | std::io::Error::new(std::io::ErrorKind::Other, error.to_string())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
58 - std::io::Error::new(std::io::ErrorKind::Other, error.to_string())
58 + std::io::Error::other(error.to_string())
|
|
The logs for this run have expired and are no longer available.
Loading