1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-05 07:15:49 +03:00

fix contributing guide and clippy warnings in tests

Этот коммит содержится в:
rhysd
2023-10-02 14:46:29 +09:00
родитель df5d6aed11
Коммит 385ed43f74
6 изменённых файлов: 14 добавлений и 12 удалений

Просмотреть файл

@@ -29,13 +29,15 @@ cargo test --features=search -- --skip src/lib.rs
To run linters:
```sh
cargo clippy --all-features --examples
cargo clippy --features=search --tests --examples
cargo clippy --features=ratatui-crossterm,search --no-default-features --tests --examples
cargo fmt -- --check
```
If you use [cargo-watch][], `cargo watch-check` alias is useful to run checks automatically on writing to a file.
If you use [cargo-watch][], `cargo watch-check` and `cargo watch-test` aliases are useful to run checks/tests automatically
on writing to a file.
## Print debug
## Print debugging
Since this crate uses stdout, `println!` is not available for debugging. Instead, stderr through [`eprintln!`][eprintln]
or [`dbg!`][dbg] are useful.