From 0fc0e8760b87f02627c0524a3af1638844d9021e Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 31 Oct 2024 12:54:39 +1100 Subject: [PATCH] docs: Remove link from self When we move `SignedAmount` to a submodule linking to `self` introduces a clippy warning, I'm not exactly sure why but lets remove the link in preparation for the move. --- units/src/amount/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs index eaa909142..b496c73c2 100644 --- a/units/src/amount/mod.rs +++ b/units/src/amount/mod.rs @@ -800,7 +800,7 @@ impl SignedAmount { /// Subtraction that doesn't allow negative [`SignedAmount`]s. /// - /// Returns [`None`] if either [`self`], `rhs` or the result is strictly negative. + /// Returns [`None`] if either `self`, `rhs` or the result is strictly negative. pub fn positive_sub(self, rhs: SignedAmount) -> Option { if self.is_negative() || rhs.is_negative() || rhs > self { None