Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 5 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading