mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
refactor: change function definitions to const for improved performance and clarity
This commit is contained in:
@@ -102,12 +102,12 @@ impl IProfiles {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_current(&self) -> Option<&String> {
|
||||
pub const fn get_current(&self) -> Option<&String> {
|
||||
self.current.as_ref()
|
||||
}
|
||||
|
||||
/// get items ref
|
||||
pub fn get_items(&self) -> Option<&Vec<PrfItem>> {
|
||||
pub const fn get_items(&self) -> Option<&Vec<PrfItem>> {
|
||||
self.items.as_ref()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user