fix: clippy warnings, add missing wry feature on examples (#1604)

* fix: clippy warnings, add missing wry feature on examples

* schema feat does not exist

* also add compression
This commit is contained in:
Lucas Fernandes Nogueira
2024-07-31 07:14:05 -03:00
committed by GitHub
parent e847cedc1f
commit 95da90f82e
10 changed files with 37 additions and 20 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ mod imp {
///
/// - **Windows**: Not supported on Windows 7. If your app targets it, enable the `windows7-compat` feature and use [`Self::notify`].
#[cfg_attr(
all(not(doc_cfg), feature = "windows7-compat"),
all(not(docsrs), feature = "windows7-compat"),
deprecated = "This function does not work on Windows 7. Use `Self::notify` instead."
)]
pub fn show(self) -> crate::Result<()> {
@@ -220,7 +220,7 @@ mod imp {
/// .expect("error while running tauri application");
/// ```
#[cfg(feature = "windows7-compat")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "windows7-compat")))]
#[cfg_attr(docsrs, doc(cfg(feature = "windows7-compat")))]
#[allow(unused_variables)]
pub fn notify<R: tauri::Runtime>(self, app: &tauri::AppHandle<R>) -> crate::Result<()> {
#[cfg(windows)]
+2
View File
@@ -352,6 +352,7 @@ impl ActiveNotification {
}
}
#[cfg(mobile)]
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ActionType {
@@ -364,6 +365,7 @@ pub struct ActionType {
hidden_previews_show_subtitle: bool,
}
#[cfg(mobile)]
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Action {