Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 136807e

Browse files
committed
rustfmt
1 parent 810f7e1 commit 136807e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

crates/monotrail-utils/src/standalone_python.rs

-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ mod test {
297297
use crate::standalone_python::{find_python, PYTHON_STANDALONE_LATEST_RELEASE};
298298
use mockito::{Mock, ServerGuard};
299299
use std::path::PathBuf;
300-
301300

302301
pub fn zstd_json_mock(url: &str, fixture: impl Into<PathBuf>) -> (ServerGuard, Mock) {
303302
use fs_err::File;

crates/monotrail/src/install.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ pub fn repo_at_revision(url: &str, revision: &str, repo_dir: &Path) -> anyhow::R
336336
backoff.as_secs()
337337
);
338338
if repo_dir.is_dir() {
339-
fs::remove_dir_all(repo_dir)
340-
.context("Failed to remove broken repo dir")?;
339+
fs::remove_dir_all(repo_dir).context("Failed to remove broken repo dir")?;
341340
}
342341
sleep(backoff);
343342
continue;

crates/monotrail/src/package_index.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ pub(crate) fn download_distribution(
136136
debug!("Downloading wheel to {}", target_file.display());
137137
fs::create_dir_all(target_dir).context("Couldn't create cache dir")?;
138138
// temp file so we don't clash with other processes running in parallel
139-
let mut temp_file = tempfile::NamedTempFile::new_in(target_dir)
140-
.context("Couldn't create file for download")?;
139+
let mut temp_file =
140+
tempfile::NamedTempFile::new_in(target_dir).context("Couldn't create file for download")?;
141141
let request_for_file = ureq::get(url)
142142
.set("User-Agent", "monotrail ([email protected])")
143143
.call()

0 commit comments

Comments
 (0)