Skip to content

Commit

Permalink
arrange the order of server commands
Browse files Browse the repository at this point in the history
  • Loading branch information
JinkeJ committed Nov 13, 2024
1 parent 0d9285f commit 7fcd6ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions adb_client/src/models/adb_server_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ pub(crate) enum AdbServerCommand {
Pair(SocketAddrV4, String),
TransportAny,
TransportSerial(String),
MDNSCheck,
MDNSServices,
ServerStatus,
ReconnectOffline,
// Local commands
ShellCommand(String),
Shell,
Expand All @@ -26,12 +30,8 @@ pub(crate) enum AdbServerCommand {
ForwardRemoveAll,
Reverse(String, String),
ReverseRemoveAll,
MDNSCheck,
MDNSServices,
ServerStatus,
Reconnect,
ReconnectOffline,
TcpIP(u16),
TcpIp(u16),
USB,
}

Expand Down Expand Up @@ -77,7 +77,7 @@ impl Display for AdbServerCommand {
AdbServerCommand::ServerStatus => write!(f, "host:server-status"),
AdbServerCommand::Reconnect => write!(f, "reconnect"),
AdbServerCommand::ReconnectOffline => write!(f, "host:reconnect-offline"),
AdbServerCommand::TcpIP(port) => {
AdbServerCommand::TcpIp(port) => {
write!(f, "tcpip:{port}")
}
AdbServerCommand::USB => write!(f, "usb:"),
Expand Down
2 changes: 1 addition & 1 deletion adb_client/src/server/device_commands/tcpip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl ADBServerDevice {
.send_adb_request(AdbServerCommand::TransportSerial(serial))?;

self.get_transport_mut()
.proxy_connection(AdbServerCommand::TcpIP(port), false)
.proxy_connection(AdbServerCommand::TcpIp(port), false)
.map(|_| ())
}
}

0 comments on commit 7fcd6ca

Please sign in to comment.