refactor: replace type references with Self in various structs and methods for consistency

This commit is contained in:
Tunglies
2025-11-06 10:19:06 +08:00
parent 70236f781c
commit 671ac2ebed
15 changed files with 102 additions and 103 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ enum LightweightState {
impl From<u8> for LightweightState {
fn from(v: u8) -> Self {
match v {
1 => LightweightState::In,
2 => LightweightState::Exiting,
_ => LightweightState::Normal,
1 => Self::In,
2 => Self::Exiting,
_ => Self::Normal,
}
}
}