Skip to content

Commit 6a43179

Browse files
committed
bazel run //tools/format
1 parent 27b76e4 commit 6a43179

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

crates/aspect-cli/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ mod flags;
33
mod helpers;
44
mod trace;
55

6-
use std::env::var;
76
use std::collections::HashMap;
7+
use std::env::var;
88
use std::path::PathBuf;
99
use std::process::ExitCode;
1010

@@ -98,7 +98,10 @@ async fn main() -> miette::Result<ExitCode> {
9898
for (name, root) in module_roots {
9999
let module_store = module_eval.evaluate(name, root).into_diagnostic()?;
100100
if debug_mode() {
101-
eprintln!("module @{} at {:?}", module_store.module_name, module_store.module_root);
101+
eprintln!(
102+
"module @{} at {:?}",
103+
module_store.module_name, module_store.module_root
104+
);
102105
};
103106
modules.push((
104107
module_store.module_name,

crates/axl-runtime/src/module/disk_store.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ impl DiskStore {
105105
let mut bytes = [0u8; 32];
106106
rng.fill_bytes(&mut bytes);
107107
let hex_string: String = bytes.iter().map(|b| format!("{:02x}", b)).collect();
108-
self.root().join("dl").join(hex_string).with_extension("tmp")
108+
self.root()
109+
.join("dl")
110+
.join(hex_string)
111+
.with_extension("tmp")
109112
}
110113

111114
async fn fetch_dep(
@@ -299,7 +302,10 @@ impl DiskStore {
299302
.map_err(|err| StoreError::LinkError(err))?;
300303
}
301304
Dep::Remote(dep) => {
302-
let cas_path = dep.integrity.as_ref().map(|integrity| self.cas_path_for_integrity(integrity));
305+
let cas_path = dep
306+
.integrity
307+
.as_ref()
308+
.map(|integrity| self.cas_path_for_integrity(integrity));
303309

304310
let need_fetch = match &cas_path {
305311
Some(cas_path) => !tokio::fs::try_exists(cas_path).await?,
@@ -317,7 +323,10 @@ impl DiskStore {
317323
for (i, url) in dep.urls.iter().enumerate() {
318324
match self.fetch_dep(&client, dep, url).await {
319325
Ok(Some(computed)) => {
320-
return Err(StoreError::MissingIntegrity(dep.name.clone(), computed));
326+
return Err(StoreError::MissingIntegrity(
327+
dep.name.clone(),
328+
computed,
329+
));
321330
}
322331
Ok(None) => {
323332
fetched = true;

crates/axl-runtime/src/module/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,4 @@ impl AxlModuleEvaluator {
271271

272272
Ok(store)
273273
}
274-
}
274+
}

0 commit comments

Comments
 (0)