Skip to content

Commit bc5dce3

Browse files
cognectclaude
andcommitted
style: rustfmt the v0.4.0 release surface
The v0.4.0 work added many new modules across atomr-accel-py and extended atomr-accel-tensorrt's actor.rs with FFI shims; rustfmt reformats long error-string literals onto multi-line forms and normalizes some let-bindings. CI's rustfmt --check gate caught the delta on the v0.4.0 commit. No semantic changes; cargo check --workspace passes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6c2d6a6 commit bc5dce3

17 files changed

Lines changed: 1377 additions & 410 deletions

File tree

.claude/scheduled_tasks.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"sessionId":"1821cead-17cd-4dc6-9170-34f0bc4e8544","pid":2294431,"procStart":"16488581","acquiredAt":1778276092565}

crates/atomr-accel-cuda/src/device/context_actor.rs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,29 +212,33 @@ impl ContextActor {
212212
let mut children = KernelChildren::new(stub);
213213
#[cfg(feature = "cusolver")]
214214
{
215-
if self.config.enabled_libraries.contains(EnabledLibraries::CUSOLVER) {
215+
if self
216+
.config
217+
.enabled_libraries
218+
.contains(EnabledLibraries::CUSOLVER)
219+
{
216220
let solver_stub = ctx
217221
.spawn::<crate::kernel::SolverActor>(
218222
crate::kernel::SolverActor::mock_props(),
219223
"solver",
220224
)
221-
.unwrap_or_else(|e| {
222-
panic!("Unrecoverable: spawn mock SolverActor: {e}")
223-
});
225+
.unwrap_or_else(|e| panic!("Unrecoverable: spawn mock SolverActor: {e}"));
224226
children.solver = Some(solver_stub);
225227
}
226228
}
227229
#[cfg(feature = "nvrtc")]
228230
{
229-
if self.config.enabled_libraries.contains(EnabledLibraries::NVRTC) {
231+
if self
232+
.config
233+
.enabled_libraries
234+
.contains(EnabledLibraries::NVRTC)
235+
{
230236
let nvrtc_stub = ctx
231237
.spawn::<crate::kernel::NvrtcActor>(
232238
crate::kernel::NvrtcActor::mock_props(),
233239
"nvrtc",
234240
)
235-
.unwrap_or_else(|e| {
236-
panic!("Unrecoverable: spawn mock NvrtcActor: {e}")
237-
});
241+
.unwrap_or_else(|e| panic!("Unrecoverable: spawn mock NvrtcActor: {e}"));
238242
children.nvrtc = Some(nvrtc_stub);
239243
}
240244
}

0 commit comments

Comments
 (0)