From fdb14dc7cd69788e2ed20709e767f7631b11ffa2 Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Sun, 3 Mar 2024 13:25:48 +0100 Subject: [PATCH] refactor: clippy::redundant_type_annotations (#974) --- Cargo.toml | 1 + tests/widgets_paragraph.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 885b4a7b..965e218b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/tests/widgets_paragraph.rs b/tests/widgets_paragraph.rs index 448929e9..0e03055b 100644 --- a/tests/widgets_paragraph.rs +++ b/tests/widgets_paragraph.rs @@ -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));