From cb2675fd1cf8dcd95371b10194a82885dd288386 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Sat, 14 Sep 2024 17:45:18 -0400 Subject: [PATCH] Fix example in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 91906f6..d664813 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ async fn main() -> Result<(), NtfyError> { let payload = Payload::new("mytopic") .message("Hello, **World**!") // Add optional message .title("Alert") // Add optiona title - .tags(vec!["warning".into()]) // Add optional tags + .tags(["warning"]) // Add optional tags .priority(Priority::High) // Edit priority .actions([action]) // Add optional actions .click(Url::parse("https://example.com")?) // Add optional clickable url