Skip to content

Commit a4b0cf5

Browse files
committed
Remove unused method in tcp_client and fix unknown doc issue
1 parent fe03526 commit a4b0cf5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

esp32-wroom-rp/src/tcp_client.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,11 @@ where
170170
self.mode
171171
}
172172

173-
// TODO: Make this non-public
174-
/// Requests a Socket
173+
/// Request current `Socket` handle.
175174
pub fn get_socket(&mut self) -> Result<Socket, Error> {
176175
self.protocol_handler.get_socket()
177176
}
178177

179-
/// Returns [`Socket`] reference set by calling [`TcpClient::get_socket`]
180-
fn socket(&self) -> Socket {
181-
self.socket.unwrap()
182-
}
183-
184178
/// Send a string slice of data to a connected server.
185179
pub fn send_data(&mut self, data: &str) -> Result<[u8; ARRAY_LENGTH_PLACEHOLDER], Error> {
186180
self.protocol_handler

esp32-wroom-rp/src/wifi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ where
196196
.set_dns_config(dns1, dns2)
197197
}
198198

199-
/// Query the DNS server(s) provided via [`set_dns`] for the associated IP address to the provided hostname.
199+
/// Query the DNS server(s) provided via `set_dns` for the associated IP address to the provided hostname.
200200
pub fn resolve(&mut self, hostname: &str) -> Result<IpAddress, Error> {
201201
self.protocol_handler.borrow_mut().resolve(hostname)
202202
}

0 commit comments

Comments
 (0)