Skip to content

Commit

Permalink
That one treefmt fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Modularius committed Sep 11, 2024
1 parent 6f4584e commit ae19072
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions digitiser-aggregator/src/frame/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ where
metadata: &FrameMetadata,
data: D,
) -> &'a impl SpannedAggregator {
if self
.frames
.iter()
.all(|frame| frame.metadata != *metadata)
{
if self.frames.iter().all(|frame| frame.metadata != *metadata) {
self.frames.push_back({
// or create a new PartialFrame
let mut frame = PartialFrame::<D>::new(self.ttl, metadata.clone());
Expand Down

0 comments on commit ae19072

Please sign in to comment.