Skip to content

Commit 4e89ec7

Browse files
committed
fix clippy
1 parent 6aeda78 commit 4e89ec7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

plugins/shell/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ pub(crate) struct ShellScopeEntry {
9393
// and `ShellScopeEntryAllowedArg` and `ShellAllowedArg`
9494
// and `ShellScopeEntryAllowedArgs` and `ShellAllowedArgs`
9595
// are kept in sync
96+
#[allow(clippy::unnecessary_operation)]
9697
fn _f() {
9798
let v = scope_entry::EntryRaw {
9899
name: String::new(),

plugins/updater/tests/app-updater/tests/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn update_app() {
221221
let updater_extension = if let Some(updater_zip_ext) = updater_zip_ext {
222222
format!("{bundle_updater_ext}.{updater_zip_ext}")
223223
} else {
224-
format!("{bundle_updater_ext}")
224+
bundle_updater_ext
225225
};
226226
let signature_extension = format!("{updater_extension}.sig");
227227
let signature_path = out_bundle_path.with_extension(signature_extension);

plugins/updater/tests/updater-migration/tests/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ fn update_app() {
413413
),
414414
2 => (
415415
v2_config.version,
416-
Box::new(|| v2::bundle_paths(&root_dir, &v2_config.version))
416+
Box::new(|| v2::bundle_paths(&root_dir, v2_config.version))
417417
as Box<dyn Fn() -> Vec<(BundleTarget, PathBuf)>>,
418418
"-v2",
419419
),

0 commit comments

Comments
 (0)