Skip to content

CI: rustfmt check failing on main #6

@PewterZz

Description

@PewterZz

Summary

cargo fmt --all -- --check fails on main, blocking the rustfmt job in CI for every run (including Dependabot PR CI).

Where

crates/beyonder-gpu/src/renderer.rs:2923

The method-chained self.running_shape_at.get(...).is_some_and(|t| { ... }) block is formatted multi-line but rustfmt wants the chain collapsed onto self.running_shape_at.get(&block.id).is_some_and(|t| { ... }).

Diff rustfmt wants

 let throttle_ok = is_streaming
-    && self
-        .running_shape_at
-        .get(&block.id)
-        .is_some_and(|t| {
+    && self.running_shape_at.get(&block.id).is_some_and(
+        |t| {
             t.elapsed().as_millis() < RUNNING_RESHAPE_MIN_MS
-        });
+        },
+    );

Fix

Run locally:

cargo fmt --all

Then commit the result. That should unblock every downstream CI run.

Evidence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions