Skip to content

Commit

Permalink
fix: remove a couple of allowed lint rules and fix string creation an…
Browse files Browse the repository at this point in the history
…tipattern
  • Loading branch information
alexpasmantier committed Jan 6, 2025
1 parent 9d67844 commit bded831
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ return_self_not_must_use = "allow"
uninlined_format_args = "allow"
similar_names = "allow"
float_cmp = "allow"
needless_pass_by_value = "allow"
implicit_hasher = "allow"
wildcard_imports = "allow"
from_iter_instead_of_collect = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"

2 changes: 1 addition & 1 deletion crates/television-utils/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Input {
None
} else {
let cursor = self.cursor;
self.value = "".into();
self.value = String::new();
self.cursor = 0;
Some(StateChanged {
value: true,
Expand Down

0 comments on commit bded831

Please sign in to comment.