mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
Fix clippy::empty_line_after_doc_comments
This commit is contained in:
parent
ca2803fe73
commit
2567880db8
3 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue