Skip to content

fix clippy doc warning#68

Merged
fdncred merged 1 commit intonushell:mainfrom
fdncred:clippy_rgb
Sep 8, 2025
Merged

fix clippy doc warning#68
fdncred merged 1 commit intonushell:mainfrom
fdncred:clippy_rgb

Conversation

@fdncred
Copy link

@fdncred fdncred commented Aug 28, 2025

Fixed this problem. Let's keep the comments for now.

error: empty lines after doc comment
  --> src\rgb.rs:69:5
   |
69 | /     /// Creates a new [Rgb] color from a [HSL] color
...  |
96 | |
   | |_^
97 |       /// Computes the linear interpolation between `self` and `other` for `t`
98 |       pub fn lerp(&self, other: Self, t: f32) -> Self {
   |       ----------- the comment documents this function
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
   = note: `-D clippy::empty-line-after-doc-comments` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_doc_comments)]`
   = help: if the empty lines are unintentional, remove them
help: if the doc comment should not document function `lerp` then comment it out
   |
69 |     // /// Creates a new [Rgb] color from a [HSL] color
   |     ++

error: could not compile `nu-ansi-term` (lib) due to 1 previous error

@fdncred fdncred merged commit 90cde3d into nushell:main Sep 8, 2025
2 checks passed
@fdncred fdncred deleted the clippy_rgb branch September 8, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant