mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-31 11:12:07 +08:00
refactor: change function definitions to const for improved performance and clarity
This commit is contained in:
@@ -36,7 +36,7 @@ impl From<u8> for LightweightState {
|
||||
}
|
||||
|
||||
impl LightweightState {
|
||||
fn as_u8(self) -> u8 {
|
||||
const fn as_u8(self) -> u8 {
|
||||
self as u8
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user