From eb6dcf05b27bc77dc83175929a90fb35ae5e7ec7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 19 Mar 2024 01:45:18 +0300 Subject: [PATCH] chore: clippy --- src/svg/utils.rs | 2 +- src/tailscale/peer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/svg/utils.rs b/src/svg/utils.rs index 90c17af..2f3dddd 100644 --- a/src/svg/utils.rs +++ b/src/svg/utils.rs @@ -42,7 +42,7 @@ impl ResvgRenderer { }; match enabled { - true => vec![renderer.to_icon(&SVG_DATA)], + true => vec![renderer.to_icon(SVG_DATA)], false => vec![renderer.to_icon(&SVG_DATA.replace("1.0", "0.4"))], } } diff --git a/src/tailscale/peer.rs b/src/tailscale/peer.rs index c2f5e48..1ca4938 100644 --- a/src/tailscale/peer.rs +++ b/src/tailscale/peer.rs @@ -36,7 +36,7 @@ pub fn copy_peer_ip(peer_ip: &str, notif_title: &str) { let _result = Notification::new() .summary(notif_title) - .body(&message) + .body(message) .icon("error") .show(); }