chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9bfed
)
Locally suppress a lint, with a TODO
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 12:58:40 +0000
(12:58 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 14:26:16 +0000
(14:26 +0000)
I don't want to do this renaming now.
src/text.rs
patch
|
blob
|
history
diff --git
a/src/text.rs
b/src/text.rs
index e20223a836c327bdc96fe976020b5881039ffa97..3f86775127659eb137cf8bdb391539765760a1b7 100644
(file)
--- a/
src/text.rs
+++ b/
src/text.rs
@@
-532,6
+532,9
@@
impl Paragraph {
}
}
+ // TODO clippy is right to complain, but I don't think I agree
+ // with the proposed resolution. We should rename this method to `push`.
+ #[allow(clippy::should_implement_trait)]
pub fn add(mut self, text: impl ColouredStringCommon) -> Self {
self.push_text(text, false);
self