Merge pull request #99 from Vlad-Shcherbina/remove-termcolor #83
Annotations
1 error and 2 warnings
Deploy docs
Process completed with exit code 100.
|
useless use of `format!`:
src/lang/ts/mod.rs#L313
warning: useless use of `format!`
--> src/lang/ts/mod.rs:313:25
|
313 | format!("{sanitised_name}")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `sanitised_name.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` implied by `#[warn(clippy::all)]`
|
single-character string constant used as pattern:
src/lang/ts/mod.rs#L183
warning: single-character string constant used as pattern
--> src/lang/ts/mod.rs:183:50
|
183 | if dt.contains(' ') && !dt.ends_with("}") {
| ^^^ help: try using a `char` instead: `'}'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
note: the lint level is defined here
--> src/lib.rs:58:9
|
58 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic, missing_docs)]
| ^^^^^^^^^^^
= note: `#[warn(clippy::single_char_pattern)]` implied by `#[warn(clippy::all)]`
|