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));