Skip to content

Commit e3dcd3e

Browse files
chore: fix clippy warnings (#308)
Co-authored-by: Fabian-Lars <118197967+FabianLars-crabnebula@users.noreply.github.com> Co-authored-by: FabianLars-crabnebula <fabianlars@crabnebula.dev>
1 parent d656ad5 commit e3dcd3e

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

bindings/packager/nodejs/src-ts/config.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,10 @@ export interface MacOsConfig {
429429
* Path to the Info.plist file for the package.
430430
*/
431431
infoPlistPath?: string | null;
432-
433432
/**
434433
* Path to the embedded.provisionprofile file for the package.
435434
*/
436435
embeddedProvisionprofilePath?: string | null;
437-
438436
/**
439437
* Apps that need to be packaged within the app.
440438
*/

crates/packager/src/cli/signer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Options {
2424

2525
pub fn command(options: Options) -> Result<()> {
2626
match options.command {
27-
Commands::Sign(opts) => sign::command(opts).map_err(Into::into),
27+
Commands::Sign(opts) => sign::command(opts),
2828
Commands::Generate(opts) => generate::command(opts),
2929
}
3030
}

crates/packager/src/codesign/windows.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ static SIGN_TOOL: Lazy<crate::Result<PathBuf>> = Lazy::new(|| {
8383
let mut installed_kits: Vec<String> = installed_roots_key
8484
.enum_keys()
8585
/* Report and ignore errors, pass on values. */
86-
.filter_map(|res| match res {
87-
Ok(v) => Some(v),
88-
Err(_) => None,
89-
})
86+
.filter_map(|res| res.ok())
9087
.collect();
9188

9289
// Sort installed kits

crates/updater/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
//!
5252
//! ## Endpoint Response
5353
//!
54-
//! The updater expects the endpoint to respond with 2 possible reponses:
54+
//! The updater expects the endpoint to respond with 2 possible responses:
5555
//!
5656
//! 1. [`204 No Content`](https://datatracker.ietf.org/doc/html/rfc2616#section-10.2.5) in case there is no updates available.
5757
//! 2. [`200 OK`](https://datatracker.ietf.org/doc/html/rfc2616#section-10.2.1) and a JSON response that could be either a JSON representing all available platform updates
58-
//! or if using endpoints variables (see above) or a header to attach the current updater target,
59-
//! then it can just return information for the requested target.
58+
//! or if using endpoints variables (see above) or a header to attach the current updater target,
59+
//! then it can just return information for the requested target.
6060
//!
6161
//! The JSON response is expected to have these fields set:
6262
//!

0 commit comments

Comments
 (0)