mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Fix lint errors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
82a2c4cdec
commit
cbb4b4e631
@ -139,7 +139,7 @@ mod gdb {
|
||||
Tcp, // IP_ADDR:PORT
|
||||
}
|
||||
pub fn stub_type_of(stub: &str) -> StubAddrType {
|
||||
if stub.split(':').last().unwrap().parse::<u16>().is_ok() {
|
||||
if stub.split(':').next_back().unwrap().parse::<u16>().is_ok() {
|
||||
return StubAddrType::Tcp;
|
||||
}
|
||||
StubAddrType::Unix
|
||||
|
Reference in New Issue
Block a user