fix: clippy errors for rust 1.97

This commit is contained in:
Tunglies
2026-05-21 12:48:48 +08:00
parent c7a989b484
commit 8efbf9e7fd
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ impl IProfiles {
if let Some(file_data) = item.file_data.take() {
let file = each.file.take();
let file =
file.unwrap_or_else(|| item.file.take().unwrap_or_else(|| format!("{}.yaml", &uid).into()));
file.unwrap_or_else(|| item.file.take().unwrap_or_else(|| format!("{}.yaml", uid).into()));
// the file must exists
each.file = Some(file.clone());
+1 -1
View File
@@ -792,7 +792,7 @@ async fn create_tray_menu(
let app_version = &MenuItem::with_id(
app_handle,
MenuIds::VERGE_VERSION,
format!("{} {version}", &texts.verge_version),
format!("{} {version}", texts.verge_version),
true,
None::<&str>,
)?;
+1 -1
View File
@@ -11,7 +11,7 @@ use objc2::MainThreadMarker;
use objc2::rc::Retained;
use objc2::runtime::AnyObject;
use objc2_app_kit::{
NSAttributedStringNSStringDrawing, NSBaselineOffsetAttributeName, NSColor, NSFont, NSFontAttributeName,
NSAttributedStringNSStringDrawing as _, NSBaselineOffsetAttributeName, NSColor, NSFont, NSFontAttributeName,
NSFontWeightRegular, NSForegroundColorAttributeName, NSLineBreakMode, NSMutableParagraphStyle,
NSParagraphStyleAttributeName, NSStatusBarButton, NSStatusItem, NSTextAlignment,
};