Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Sep 30, 2024
1 parent 907a434 commit 3f97b99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui_flex/src/flex_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use egui::Ui;
/// If your widget has no frmae you don't need to implement this trait and can use
/// [`crate::FlexInstance::add_widget`] to add any [`egui::Widget`].
pub trait FlexWidget {
/// The response type of the widget
type Response;
/// Show your widget here. Use the provided [`Ui`] to draw the container (e.g. using a [`egui::Frame`])
/// and in the frame ui use [`FlexContainerUi::content`] to draw your widget.
Expand Down
4 changes: 4 additions & 0 deletions crates/egui_flex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use std::mem;

/// The direction in which the flex container should lay out its children.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum FlexDirection {
#[default]
Horizontal,
Expand All @@ -22,6 +23,7 @@ pub enum FlexDirection {

/// How to justify the content (alignment in the main axis).
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum FlexJustify {
#[default]
Start,
Expand All @@ -34,6 +36,7 @@ pub enum FlexJustify {

/// How to align the content in the cross axis on the current line.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum FlexAlign {
Start,
End,
Expand All @@ -44,6 +47,7 @@ pub enum FlexAlign {

/// How to align the content in the cross axis across the whole container.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum FlexAlignContent {
#[default]
Normal,
Expand Down

0 comments on commit 3f97b99

Please sign in to comment.