mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 02:52:07 +08:00
fix: clippy errors for rust 1.97
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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>,
|
||||
)?;
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user