Skip to content

Commit

Permalink
apply Clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Jan 25, 2024
1 parent 4233e1f commit 251d440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fn build_caniuse_global() -> Result<()> {
.collect::<HashMap<_, _>>();
fs::write(
format!("{}/caniuse-browsers.json", &out_dir),
&serde_json::to_string(&browsers)?,
serde_json::to_string(&browsers)?,
)?;

let mut global_usage = data
Expand All @@ -210,7 +210,7 @@ fn build_caniuse_global() -> Result<()> {
global_usage.sort_unstable_by(|(_, _, a), (_, _, b)| b.partial_cmp(a).unwrap());
fs::write(
format!("{}/caniuse-global-usage.json", &out_dir),
&serde_json::to_string(&global_usage)?,
serde_json::to_string(&global_usage)?,
)?;

let features_dir = format!("{}/features", &out_dir);
Expand Down
2 changes: 1 addition & 1 deletion src/queries/supports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(super) fn supports(name: &str, opts: &Opts) -> QueryResult {
.and_then(|versions| versions.get(&**version)),
_ => None,
})
.and_then(|flags| is_supported(*flags).then_some(&*version))
.and_then(|flags| is_supported(*flags).then_some(version))
})
.map(move |version| Distrib::new(name, version))
})
Expand Down

0 comments on commit 251d440

Please sign in to comment.