Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jul 8, 2024
1 parent 671a834 commit 495d723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,7 @@ impl Context {
/// the function is still called, but with no other effect.
///
/// No locks are held while the given closure is called.
#[allow(clippy::unused_self)]
#[allow(clippy::unused_self, clippy::let_and_return)]
#[inline]
pub fn with_accessibility_parent<T>(&self, _id: Id, f: impl FnOnce() -> T) -> T {
// TODO(emilk): this isn't thread-safe - another thread can call this function between the push/pop calls
Expand Down
1 change: 1 addition & 0 deletions crates/egui/src/widgets/theme_switch/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ fn approximate_with_bezier(center: Pos2, radius: f32, start: f32, end: f32) -> [
struct QuarterTurnsIter(Option<RangeInclusive<f32>>);

const QUARTER_TURN: f32 = FRAC_PI_2;

impl Iterator for QuarterTurnsIter {
type Item = RangeInclusive<f32>;

Expand Down

0 comments on commit 495d723

Please sign in to comment.