aboutsummaryrefslogtreecommitdiff
path: root/examples/std
diff options
context:
space:
mode:
Diffstat (limited to 'examples/std')
-rw-r--r--examples/std/src/bin/net.rs2
-rw-r--r--examples/std/src/serial_port.rs2
-rw-r--r--examples/std/src/tuntap.rs3
3 files changed, 3 insertions, 4 deletions
diff --git a/examples/std/src/bin/net.rs b/examples/std/src/bin/net.rs
index 8abcc586f..be78e3a7e 100644
--- a/examples/std/src/bin/net.rs
+++ b/examples/std/src/bin/net.rs
@@ -67,7 +67,7 @@ async fn main_task(spawner: Spawner) {
67 67
68 socket.set_timeout(Some(embassy_net::SmolDuration::from_secs(10))); 68 socket.set_timeout(Some(embassy_net::SmolDuration::from_secs(10)));
69 69
70 let remote_endpoint = (Ipv4Address::new(192, 168, 69, 74), 8000); 70 let remote_endpoint = (Ipv4Address::new(192, 168, 69, 100), 8000);
71 info!("connecting to {:?}...", remote_endpoint); 71 info!("connecting to {:?}...", remote_endpoint);
72 let r = socket.connect(remote_endpoint).await; 72 let r = socket.connect(remote_endpoint).await;
73 if let Err(e) = r { 73 if let Err(e) = r {
diff --git a/examples/std/src/serial_port.rs b/examples/std/src/serial_port.rs
index aadaeb81d..6825cbebc 100644
--- a/examples/std/src/serial_port.rs
+++ b/examples/std/src/serial_port.rs
@@ -9,7 +9,7 @@ pub struct SerialPort {
9} 9}
10 10
11impl SerialPort { 11impl SerialPort {
12 pub fn new<'a, P: ?Sized + nix::NixPath>( 12 pub fn new<P: ?Sized + nix::NixPath>(
13 path: &P, 13 path: &P,
14 baudrate: termios::BaudRate, 14 baudrate: termios::BaudRate,
15 ) -> io::Result<Self> { 15 ) -> io::Result<Self> {
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs
index 4d30118fb..7ab08539f 100644
--- a/examples/std/src/tuntap.rs
+++ b/examples/std/src/tuntap.rs
@@ -170,8 +170,7 @@ impl crate::Device for TunTapDevice {
170 Err(e) if e.kind() == io::ErrorKind::WouldBlock => { 170 Err(e) if e.kind() == io::ErrorKind::WouldBlock => {
171 let ready = if let Some(w) = self.waker.as_ref() { 171 let ready = if let Some(w) = self.waker.as_ref() {
172 let mut cx = Context::from_waker(w); 172 let mut cx = Context::from_waker(w);
173 let ready = self.device.poll_readable(&mut cx).is_ready(); 173 self.device.poll_readable(&mut cx).is_ready()
174 ready
175 } else { 174 } else {
176 false 175 false
177 }; 176 };