Skip to content

Commit

Permalink
Bump version to 3.4.2, misc minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Jul 3, 2022
1 parent 05b6079 commit 900d1e3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sigi"
version = "3.4.1"
version = "3.4.2"
authors = ["J.R. Hill <[email protected]>"]
edition = "2021"
license = "GPL-2.0-only"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ board games you want to play onto a stack. Shell aliases are encouraged to
organize your various stacks.

```
sigi 3.4.1
sigi 3.4.2
An organizing tool for terminal lovers who hate organizing
USAGE:
Expand Down
2 changes: 1 addition & 1 deletion sigi.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH sigi 1 "May 13, 2022" "version 3.4.1" "USER COMMANDS"
.TH sigi 1 "July 3, 2022" "version 3.4.2" "USER COMMANDS"
.\"
.SH NAME
sigi \- An organizing tool for terminal lovers who hate organizing
Expand Down
18 changes: 8 additions & 10 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,14 @@ impl FormatConfig {
ProgrammaticFormat::JsonCompact => JsonCompact,
ProgrammaticFormat::Tsv => Tsv,
})
.or_else(|| {
if verbose {
Some(Human(Verbose))
} else if silent {
Some(Silent)
} else if quiet {
Some(Human(Quiet))
} else {
None
}
.or(if verbose {
Some(Human(Verbose))
} else if silent {
Some(Silent)
} else if quiet {
Some(Human(Quiet))
} else {
None
})
}

Expand Down
6 changes: 2 additions & 4 deletions src/cli/interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ fn parse_effect(tokens: Vec<&str>, stack: String) -> ParseEffectResult {
let parse_n = || {
tokens
.get(1)
.map(|s| usize::from_str(s).ok())
.flatten()
.and_then(|s| usize::from_str(s).ok())
.unwrap_or(DEFAULT_SHORT_LIST_LIMIT)
};

Expand Down Expand Up @@ -250,8 +249,7 @@ fn parse_effect(tokens: Vec<&str>, stack: String) -> ParseEffectResult {
if PICK_TERMS.contains(term) {
let indices = tokens
.iter()
.map(|s| usize::from_str(s).ok())
.flatten()
.filter_map(|s| usize::from_str(s).ok())
.collect();
return Effect(Pick { stack, indices });
}
Expand Down

0 comments on commit 900d1e3

Please sign in to comment.