Fix clippy::empty_line_after_doc_comments

This commit is contained in:
Yuri Astrakhan 2025-02-07 13:05:22 -05:00 committed by Simon Hausmann
parent ca2803fe73
commit 2567880db8
3 changed files with 3 additions and 4 deletions

View file

@ -68,8 +68,9 @@ pub enum ComponentSelection {
/// and if no component is exported, the last component is selected
#[default]
ExportedWindows,
/// The Last component (legacy for the viewer / interpreter)
/// The Last component (legacy for the viewer / interpreter)
///
/// Only the last exported component is generated, regardless if this is a Window or not,
/// (and it will be transformed in a Window)
LastExported,

View file

@ -238,7 +238,6 @@ impl Color {
/// let blue = Color::from_argb_u8(200, 0, 0, 255);
/// assert_eq!(blue.transparentize(-0.1), Color::from_argb_u8(220, 0, 0, 255));
/// ```
#[must_use]
pub fn transparentize(&self, factor: f32) -> Self {
let mut color = *self;

View file

@ -268,10 +268,9 @@ pub struct StaticTexture {
pub index: usize,
}
/// A texture is stored in read-only memory and may be composed of sub-textures.
#[repr(C)]
#[derive(Clone, PartialEq, Debug)]
/// A texture is stored in read-only memory and may be composed of sub-textures.
pub struct StaticTextures {
/// The total size of the image (this might not be the size of the full image
/// as some transparent part are not part of any texture)