Solve 4, fix abs(1) #84
Annotations
10 errors
this import is redundant:
solver/src/communicator.rs#L2
error: this import is redundant
--> solver/src/communicator.rs:2:1
|
2 | use reqwest;
| ^^^^^^^^^^^^ help: remove it entirely
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
= note: `-D clippy::single-component-path-imports` implied by `-D clippy::style`
= help: to override `-D clippy::style` add `#[allow(clippy::single_component_path_imports)]`
|
question mark operator is useless here:
solver/src/communicator.rs#L20
error: question mark operator is useless here
--> solver/src/communicator.rs:20:3
|
20 | / Ok(
21 | | result
22 | | .text()
23 | | .await
24 | | .map_err(|e| miette!("Failed to read response: {}", e))?,
25 | | )
| |___^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
= note: `-D clippy::needless-question-mark` implied by `-D clippy::complexity`
= help: to override `-D clippy::complexity` add `#[allow(clippy::needless_question_mark)]`
help: try removing question mark and `Ok()`
|
20 ~ result
21 + .text()
22 + .await
23 + .map_err(|e| miette!("Failed to read response: {}", e))
|
|
constants have by default a `'static` lifetime:
solver/src/parser.rs#L109
error: constants have by default a `'static` lifetime
--> solver/src/parser.rs:109:22
|
109 | const ALIEN_ASCII : &'static str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`|~ \n";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `-D clippy::redundant-static-lifetimes` implied by `-D clippy::style`
= help: to override `-D clippy::style` add `#[allow(clippy::redundant_static_lifetimes)]`
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L519
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:519:10
|
519 | /// `-` Integer negation U- I$ -> -3
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
= note: `-D clippy::tabs-in-doc-comments` implied by `-D clippy::style`
= help: to override `-D clippy::style` add `#[allow(clippy::tabs_in_doc_comments)]`
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L519
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:519:27
|
519 | /// `-` Integer negation U- I$ -> -3
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L521
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:521:10
|
521 | /// `!` Boolean not U! T -> false
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L521
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:521:22
|
521 | /// `!` Boolean not U! T -> false
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L523
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:523:10
|
523 | /// `#` string-to-int: interpret a string as a base-94 number U# S4%34 -> 15818151
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L523
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:523:64
|
523 | /// `#` string-to-int: interpret a string as a base-94 number U# S4%34 -> 15818151
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
solver/src/parser.rs#L525
error: using tabs in doc comments is not recommended
--> solver/src/parser.rs:525:10
|
525 | /// `$` int-to-string: inverse of the above U$ I4%34 -> test
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|