summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.cargo/config.toml2
-rw-r--r--core/src/text/editor.rs2
-rw-r--r--graphics/src/text/paragraph.rs2
3 files changed, 2 insertions, 4 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 3e02dda8..85a46cda 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -17,8 +17,6 @@ clippy --workspace --no-deps -- \
-D clippy::useless_conversion
"""
-#![allow(clippy::inherent_to_string, clippy::type_complexity)]
-
nitpick = """
clippy --workspace --no-deps -- \
-D warnings \
diff --git a/core/src/text/editor.rs b/core/src/text/editor.rs
index ebb0eee2..f3c6e342 100644
--- a/core/src/text/editor.rs
+++ b/core/src/text/editor.rs
@@ -7,7 +7,7 @@ use std::sync::Arc;
/// A component that can be used by widgets to edit multi-line text.
pub trait Editor: Sized + Default {
- /// The [`Font`] of the [`Editor`].
+ /// The font of the [`Editor`].
type Font: Copy + PartialEq + Default;
/// Creates a new [`Editor`] laid out with the given text.
diff --git a/graphics/src/text/paragraph.rs b/graphics/src/text/paragraph.rs
index ccfe4a61..4a08a8f4 100644
--- a/graphics/src/text/paragraph.rs
+++ b/graphics/src/text/paragraph.rs
@@ -37,7 +37,7 @@ impl Paragraph {
/// Creates a [`Weak`] reference to the [`Paragraph`].
///
- /// This is useful to avoid cloning the [`Editor`] when
+ /// This is useful to avoid cloning the [`Paragraph`] when
/// referential guarantees are unnecessary. For instance,
/// when creating a rendering tree.
pub fn downgrade(&self) -> Weak {