Skip to content

Commit

Permalink
Fix clippy for rust 1.84.0 (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
noituri authored Jan 10, 2025
1 parent 5bd6057 commit 1fd036f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compositor_pipeline/src/queue/audio_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl AudioQueueInput {
while self
.queue
.front()
.map_or(false, |batch| batch.end_pts < end_pts)
.is_some_and(|batch| batch.end_pts < end_pts)
{
self.queue.pop_front();
}
Expand Down
5 changes: 1 addition & 4 deletions generate/src/bin/generate_from_types/schema_parser/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ impl SchemaObjectExt for SchemaObject {
// - oneOf or
// - anyOf is present and has more than one non-nullable schema

let has_one_of = self
.subschemas
.as_ref()
.map_or(false, |s| s.one_of.is_some());
let has_one_of = self.subschemas.as_ref().is_some_and(|s| s.one_of.is_some());

let non_nullabe_any_of_size = self
.subschemas
Expand Down

0 comments on commit 1fd036f

Please sign in to comment.