Skip to content

Commit 118a45e

Browse files
committed
Release 0.4.0, with fmt cleanup
1 parent d796d9f commit 118a45e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cargo-sweep"
33
description = "A tool for cleaning unused build files created by Cargo"
4-
version = "0.3.0"
4+
version = "0.4.0"
55
edition = "2018"
66
authors = ["holmgr <[email protected]>"]
77
keywords = ["tool", "cli", "cargo"]

src/main.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ fn main() {
250250

251251
if matches.is_present("maxsize") {
252252
// TODO: consider parsing units like GB, KB ...
253-
let size = match matches.value_of("maxsize").and_then(|s| s.parse::<u64>().ok()) {
253+
let size = match matches
254+
.value_of("maxsize")
255+
.and_then(|s| s.parse::<u64>().ok())
256+
{
254257
Some(s) => s * 1024 * 1024,
255258
None => {
256259
error!("maxsize has to be a number");
@@ -259,8 +262,7 @@ fn main() {
259262
};
260263

261264
for project_path in &paths {
262-
match remove_older_until_fits(project_path, size, dry_run)
263-
{
265+
match remove_older_until_fits(project_path, size, dry_run) {
264266
Ok(cleaned_amount) if dry_run => {
265267
info!("Would clean: {}", format_bytes(cleaned_amount))
266268
}

0 commit comments

Comments
 (0)