Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Jul 2, 2024
1 parent 50b9b1b commit 1ed25ca
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
1 change: 1 addition & 0 deletions core/tauri/src/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mod window;
/// The context passed to the invoke handler.
pub struct InvokeContext<R: Runtime> {
pub window: Window<R>,
#[allow(dead_code)]
pub config: Arc<Config>,
pub package_info: PackageInfo,
}
Expand Down
2 changes: 2 additions & 0 deletions core/tauri/src/endpoints/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const PERMISSION_GRANTED: &str = "granted";
const PERMISSION_DENIED: &str = "denied";

#[derive(Debug, Clone)]
#[allow(dead_code)]
pub enum SoundDto {
Default,
Custom(String),
Expand Down Expand Up @@ -49,6 +50,7 @@ impl<'de> Deserialize<'de> for SoundDto {

/// The options for the notification API.
#[derive(Debug, Clone, Deserialize)]
#[allow(dead_code)]
pub struct NotificationOptions {
/// The notification title.
pub title: String,
Expand Down
30 changes: 14 additions & 16 deletions tooling/bundler/src/bundle/macos/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,23 +305,21 @@ pub fn notarize(
log::info!(action = "Notarizing"; "{}", log_message);
staple_app(app_bundle_path)?;
Ok(())
} else {
if let Ok(output) = Command::new("xcrun")
.args(["notarytool", "log"])
.arg(&submit_output.id)
.notarytool_args(&auth)
.output_ok()
{
Err(
anyhow::anyhow!(
"{log_message}\nLog:\n{}",
String::from_utf8_lossy(&output.stdout)
)
.into(),
} else if let Ok(output) = Command::new("xcrun")
.args(["notarytool", "log"])
.arg(&submit_output.id)
.notarytool_args(&auth)
.output_ok()
{
Err(
anyhow::anyhow!(
"{log_message}\nLog:\n{}",
String::from_utf8_lossy(&output.stdout)
)
} else {
Err(anyhow::anyhow!("{log_message}").into())
}
.into(),
)
} else {
Err(anyhow::anyhow!("{log_message}").into())
}
} else {
Err(anyhow::anyhow!("failed to parse notarytool output as JSON: `{output_str}`").into())
Expand Down
1 change: 1 addition & 0 deletions tooling/bundler/src/bundle/path_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct DirOpts {
pub struct FileOpts {
pub overwrite: bool,
pub skip: bool,
#[allow(dead_code)]
pub buffer_size: usize,
}

Expand Down
2 changes: 2 additions & 0 deletions tooling/bundler/src/bundle/windows/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ impl Settings {
}
}
}

#[allow(dead_code)]
pub struct SignParams {
pub product_name: String,
pub digest_algorithm: String,
Expand Down

0 comments on commit 1ed25ca

Please sign in to comment.