build(deps): bump Rust to 1.87.0 (#9159)

This commit is contained in:
Thomas Eizinger
2025-05-16 11:58:17 +10:00
committed by GitHub
parent 5e1a79d100
commit 6165555add
6 changed files with 6 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ impl CallbackHandler {
&[JValue::Int(socket)],
)
})
.map_err(|e| io::Error::new(io::ErrorKind::Other, e))
.map_err(io::Error::other)
}
}

View File

@@ -38,8 +38,7 @@ impl<'l> tracing_subscriber::fmt::MakeWriter<'l> for MakeWriter {
impl io::Write for Writer<'_> {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
let message =
std::str::from_utf8(buf).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
let message = std::str::from_utf8(buf).map_err(io::Error::other)?;
self.oslog.with_level(self.level, message);

View File

@@ -78,7 +78,7 @@ pub struct Worker {
}
enum Inner {
DBus(zbus::proxy::SignalStream<'static>),
DBus(Box<zbus::proxy::SignalStream<'static>>),
DnsPoller(Interval),
Null,
}
@@ -106,7 +106,7 @@ impl Worker {
let stream = proxy.receive_signal(member).await?;
Ok(Self {
just_started: true,
inner: Inner::DBus(stream),
inner: Inner::DBus(Box::new(stream)),
})
}

View File

@@ -804,7 +804,6 @@ where
/// This heuristic might fail because we are also handling wireguard packets.
/// Those are fully encrypted and thus any byte pattern may appear at the front of the packet.
/// We can detect this by further checking the origin of the packet.
#[must_use]
fn allocations_try_handle<'p>(
&mut self,
from: SocketAddr,
@@ -859,7 +858,6 @@ where
}
}
#[must_use]
fn agents_try_handle(
&mut self,
from: SocketAddr,
@@ -892,7 +890,6 @@ where
ControlFlow::Break(Ok(()))
}
#[must_use]
fn connections_try_handle(
&mut self,
from: SocketAddr,

View File

@@ -1061,7 +1061,7 @@ impl ClientState {
query: query_result.query,
message: query_result
.result
.map_err(|e| io::Error::new(io::ErrorKind::Other, format!("{e:#}"))),
.map_err(|e| io::Error::other(format!("{e:#}"))),
transport: dns::Transport::Tcp { local, remote },
});
continue;

View File

@@ -1,4 +1,4 @@
[toolchain]
channel = "1.86.0"
channel = "1.87.0"
components = ["rust-src", "rust-analyzer", "clippy"]
targets = ["x86_64-unknown-linux-musl"]