Skip to content

Commit e739fe2

Browse files
committed
cargo fmt
1 parent 025d481 commit e739fe2

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,23 @@ fn clean_cache(max_age: u128) -> MainResult<()> {
240240

241241
let cache_dir = platform::generated_projects_cache_path();
242242

243-
if cache_dir.exists(){
243+
if cache_dir.exists() {
244244
for child in fs::read_dir(cache_dir)? {
245245
let child = child?;
246246
let path = child.path();
247247
if path.is_file() {
248248
continue;
249249
}
250-
250+
251251
info!("checking: {:?}", path);
252-
252+
253253
let remove_dir = || {
254254
let meta_mtime = platform::dir_last_modified(&child);
255255
info!("meta_mtime: {:>20?} ms", meta_mtime);
256-
256+
257257
meta_mtime <= cutoff
258258
};
259-
259+
260260
if remove_dir() {
261261
info!("removing {:?}", path);
262262
if let Err(err) = fs::remove_dir_all(&path) {

tests/tests/script.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ fn test_script_test_extra_args_for_cargo() {
101101

102102
#[test]
103103
fn test_script_test_extra_args_for_test() {
104-
let out = rust_script!("--test", "tests/data/script-test-extra-args.rs", "--", "--nocapture").unwrap();
104+
let out = rust_script!(
105+
"--test",
106+
"tests/data/script-test-extra-args.rs",
107+
"--",
108+
"--nocapture"
109+
)
110+
.unwrap();
105111
assert!(out.success());
106112
assert!(out.stdout.contains("Hello, world!"));
107113
}

0 commit comments

Comments
 (0)