Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Feb 1, 2024
1 parent 810f7e1 commit 136807e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/monotrail-utils/src/standalone_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ mod test {
use crate::standalone_python::{find_python, PYTHON_STANDALONE_LATEST_RELEASE};
use mockito::{Mock, ServerGuard};
use std::path::PathBuf;


pub fn zstd_json_mock(url: &str, fixture: impl Into<PathBuf>) -> (ServerGuard, Mock) {
use fs_err::File;
Expand Down
3 changes: 1 addition & 2 deletions crates/monotrail/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,7 @@ pub fn repo_at_revision(url: &str, revision: &str, repo_dir: &Path) -> anyhow::R
backoff.as_secs()
);
if repo_dir.is_dir() {
fs::remove_dir_all(repo_dir)
.context("Failed to remove broken repo dir")?;
fs::remove_dir_all(repo_dir).context("Failed to remove broken repo dir")?;
}
sleep(backoff);
continue;
Expand Down
4 changes: 2 additions & 2 deletions crates/monotrail/src/package_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ pub(crate) fn download_distribution(
debug!("Downloading wheel to {}", target_file.display());
fs::create_dir_all(target_dir).context("Couldn't create cache dir")?;
// temp file so we don't clash with other processes running in parallel
let mut temp_file = tempfile::NamedTempFile::new_in(target_dir)
.context("Couldn't create file for download")?;
let mut temp_file =
tempfile::NamedTempFile::new_in(target_dir).context("Couldn't create file for download")?;
let request_for_file = ureq::get(url)
.set("User-Agent", "monotrail ([email protected])")
.call()
Expand Down

0 comments on commit 136807e

Please sign in to comment.