Skip to content

Commit 51c9908

Browse files
committed
chore: format
1 parent 6a26299 commit 51c9908

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ impl BuildSystem {
229229

230230
fs::rename(entry.path(), &target_path)
231231
.await
232-
.with_context(|| {
233-
format!("error moving {:?} to {:?}", entry.path(), target_path)
234-
})?;
232+
.with_context(|| format!("error moving {:?} to {:?}", entry.path(), target_path))?;
235233
}
236234
Ok(())
237235
}

src/pipelines/copy_dir.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ impl CopyDir {
6262
let rel_path = crate::common::strip_prefix(&self.path);
6363
tracing::debug!(path = ?rel_path, "copying directory");
6464

65-
let canonical_path = fs::canonicalize(&self.path).await.with_context(|| {
66-
format!("error taking canonical path of directory {:?}", self.path)
67-
})?;
68-
let dir_name = canonical_path.file_name().with_context(|| {
69-
format!("could not get directory name of dir {:?}", canonical_path)
70-
})?;
65+
let canonical_path = fs::canonicalize(&self.path)
66+
.await
67+
.with_context(|| format!("error taking canonical path of directory {:?}", self.path))?;
68+
let dir_name = canonical_path
69+
.file_name()
70+
.with_context(|| format!("could not get directory name of dir {:?}", canonical_path))?;
7171

7272
let dir_out = target_path(
7373
&self.cfg.staging_dist,

0 commit comments

Comments
 (0)