Skip to content

Commit

Permalink
Revert the use of then_some
Browse files Browse the repository at this point in the history
That would raise the MSRV
  • Loading branch information
ogoffart committed Dec 29, 2023
1 parent b61d940 commit e216dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ fn process_toml(cargo_toml: &str, args: &Args) -> Result<String, String> {
if !current_comment.is_empty() {
let dep = current_table
.rsplit_once('.')
.and_then(|(table, dep)| table.trim().ends_with("dependencies").then_some(dep))
.and_then(|(table, dep)| table.trim().ends_with("dependencies").then(|| dep))
.ok_or_else(|| format!("Not a feature: `{}`", line))?;
features.push((
dep.trim(),
Expand Down

0 comments on commit e216dcb

Please sign in to comment.