refactor: clippy::redundant_type_annotations (#974)

This commit is contained in:
EdJoPaTo 2024-03-03 13:25:48 +01:00 committed by Josh McKinney
parent 9b3b23ac14
commit fdb14dc7cd
No known key found for this signature in database
GPG key ID: 722287396A903BC5
2 changed files with 2 additions and 1 deletions

View file

@ -80,6 +80,7 @@ deref_by_slicing = "warn"
empty_line_after_doc_comments = "warn"
equatable_if_let = "warn"
missing_const_for_fn = "warn"
redundant_type_annotations = "warn"
use_self = "warn"
[features]

View file

@ -82,7 +82,7 @@ fn widgets_paragraph_renders_mixed_width_graphemes() {
#[test]
fn widgets_paragraph_can_wrap_with_a_trailing_nbsp() {
let nbsp: &str = "\u{00a0}";
let nbsp = "\u{00a0}";
let line = Line::from(vec![Span::raw("NBSP"), Span::raw(nbsp)]);
let paragraph = Paragraph::new(line).block(Block::default().borders(Borders::ALL));