mirror of
https://github.com/tauri-apps/winrt-notification.git
synced 2026-01-31 00:45:19 +01:00
chore(deps): update rust crate quick-xml to 0.38 (#49)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <github@fabianlars.de>
This commit is contained in:
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -19,9 +19,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "quick-xml"
|
||||
version = "0.37.2"
|
||||
version = "0.38.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "165859e9e55f79d67b96c5d96f4e88b6f2695a1972849c15a6a3f5c59fc2c003"
|
||||
checksum = "8927b0664f5c5a98265138b7e3f90aa19a6b21353182469ace36d4ac527b7b1b"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
@@ -48,7 +48,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-winrt-notification"
|
||||
version = "0.7.1"
|
||||
version = "0.7.2"
|
||||
dependencies = [
|
||||
"quick-xml",
|
||||
"thiserror",
|
||||
|
||||
@@ -18,7 +18,7 @@ rust-version = "1.74"
|
||||
default-target = "x86_64-pc-windows-msvc"
|
||||
|
||||
[dependencies]
|
||||
quick-xml = "0.37"
|
||||
quick-xml = "0.38"
|
||||
thiserror = "2"
|
||||
windows-version = "0.1"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ fn main() {
|
||||
.duration(Duration::Short)
|
||||
.on_activated(move |action| {
|
||||
match action {
|
||||
Some(action) => println!("You've clicked {}!", action),
|
||||
Some(action) => println!("You've clicked {action}!"),
|
||||
None => println!("You've clicked me!"),
|
||||
}
|
||||
exit(0);
|
||||
|
||||
12
src/lib.rs
12
src/lib.rs
@@ -481,14 +481,12 @@ impl Toast {
|
||||
None => "<audio silent=\"true\" />".to_owned(),
|
||||
Some(Sound::Default) => "".to_owned(),
|
||||
Some(Sound::Loop(sound)) => format!(
|
||||
r#"<audio loop="true" src="ms-winsoundevent:Notification.Looping.{}" />"#,
|
||||
sound
|
||||
r#"<audio loop="true" src="ms-winsoundevent:Notification.Looping.{sound}" />"#
|
||||
),
|
||||
Some(Sound::Single(sound)) => format!(
|
||||
r#"<audio src="ms-winsoundevent:Notification.Looping.{}" />"#,
|
||||
sound
|
||||
),
|
||||
Some(sound) => format!(r#"<audio src="ms-winsoundevent:Notification.{}" />"#, sound),
|
||||
Some(Sound::Single(sound)) => {
|
||||
format!(r#"<audio src="ms-winsoundevent:Notification.Looping.{sound}" />"#)
|
||||
}
|
||||
Some(sound) => format!(r#"<audio src="ms-winsoundevent:Notification.{sound}" />"#),
|
||||
};
|
||||
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user