Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed Jan 6, 2025
1 parent c73ac08 commit ae2f148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/cli/src/cli/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ impl Bundle {
.bundle_dir(self.build_arguments.platform())
.join(&name),
)
.with_context(|| {
format!("Failed to copy the output executable into the bundle directory")
})?;
.with_context(|| "Failed to copy the output executable into the bundle directory")?;

let binaries = vec![
// We use the name of the exe but it has to be in the same directory
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/dioxus_crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl DioxusCrate {
.targets
.iter()
.filter_map(|target| {
target.kind.contains(kind).then(|| target.name.as_str())
target.kind.contains(kind).then_some(target.name.as_str())
}).collect::<Vec<_>>();
filtered_packages.join(", ")};
if let Some(example) = &target.example {
Expand Down

0 comments on commit ae2f148

Please sign in to comment.