From 45241f49a0f2b0a28ddb7d86c3ccf567d5408f59 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 29 Oct 2024 14:42:06 +0700 Subject: [PATCH] Fix `clippy::too_long_first_doc_paragraph` lint (#63) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Crozet --- src/scalar/subset.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/scalar/subset.rs b/src/scalar/subset.rs index d83f02a..958691f 100644 --- a/src/scalar/subset.rs +++ b/src/scalar/subset.rs @@ -3,10 +3,11 @@ use decimal::d128; use num::Zero; use num_complex::Complex; -/// Nested sets and conversions between them (using an injective mapping). Useful to work with -/// substructures. In generic code, it is preferable to use `SupersetOf` as trait bound whenever -/// possible instead of `SubsetOf` (because `SupersetOf` is automatically implemented whenever -/// `SubsetOf` is). +/// Nested sets and conversions between them (using an injective mapping). +/// +/// Useful to work with substructures. In generic code, it is preferable to use `SupersetOf` +/// as trait bound whenever possible instead of `SubsetOf` (because `SupersetOf` is automatically +/// implemented whenever `SubsetOf` is). /// /// The notion of "nested sets" is very broad and applies to what the types are _supposed to /// represent_, independently from their actual implementation details and limitations. For @@ -44,9 +45,11 @@ pub trait SubsetOf: Sized { fn is_in_subset(element: &T) -> bool; } -/// Nested sets and conversions between them. Useful to work with substructures. It is preferable -/// to implement the `SubsetOf` trait instead of `SupersetOf` whenever possible (because -/// `SupersetOf` is automatically implemented whenever `SubsetOf` is). +/// Nested sets and conversions between them. +/// +/// Useful to work with substructures. It is preferable to implement the `SubsetOf` trait instead +/// of `SupersetOf` whenever possible (because `SupersetOf` is automatically implemented whenever +/// `SubsetOf` is). /// /// The notion of "nested sets" is very broad and applies to what the types are _supposed to /// represent_, independently from their actual implementation details and limitations. For