cargo fix

This commit is contained in:
Wez Furlong committed 2025-10-05 10:58:00 +01:00
1 parent d658b2f2fb
commit 75df5e24d9
6 files changed
+19 -19

No files matched your search

+2 -2
View File
@@ -529,10 +529,10 @@ impl portable_pty::MasterPty for FailedSpawnPty {
fn get_size(&self) -> anyhow::Result<PtySize> {
self.inner.lock().get_size()
}
fn try_clone_reader(&self) -> anyhow::Result<Box<(dyn std::io::Read + Send + 'static)>> {
fn try_clone_reader(&self) -> anyhow::Result<Box<dyn std::io::Read + Send + 'static>> {
self.inner.lock().try_clone_reader()
}
fn take_writer(&self) -> anyhow::Result<Box<(dyn std::io::Write + Send + 'static)>> {
fn take_writer(&self) -> anyhow::Result<Box<dyn std::io::Write + Send + 'static>> {
self.inner.lock().take_writer()
}
+4 -4
View File
@@ -973,8 +973,8 @@ impl ChildKiller for WrappedSshChildKiller {
}
}
type BoxedReader = Box<(dyn Read + Send + 'static)>;
type BoxedWriter = Box<(dyn Write + Send + 'static)>;
type BoxedReader = Box<dyn Read + Send + 'static>;
type BoxedWriter = Box<dyn Write + Send + 'static>;
pub(crate) struct WrappedSshPty {
inner: RefCell<WrappedSshPtyInner>,
@@ -1071,7 +1071,7 @@ impl portable_pty::MasterPty for WrappedSshPty {
}
}
fn try_clone_reader(&self) -> anyhow::Result<Box<(dyn Read + Send + 'static)>> {
fn try_clone_reader(&self) -> anyhow::Result<Box<dyn Read + Send + 'static>> {
let mut inner = self.inner.borrow_mut();
inner.check_connected()?;
match &mut *inner {
@@ -1083,7 +1083,7 @@ impl portable_pty::MasterPty for WrappedSshPty {
}
}
fn take_writer(&self) -> anyhow::Result<Box<(dyn Write + Send + 'static)>> {
fn take_writer(&self) -> anyhow::Result<Box<dyn Write + Send + 'static>> {
anyhow::bail!("writer must be created during bootstrap");
}
+5 -5
View File
@@ -44,27 +44,27 @@ impl<'a> Borrow<dyn ObjectKeyTrait + 'a> for Value {
}
}
impl<'a> PartialEq for (dyn ObjectKeyTrait + 'a) {
impl<'a> PartialEq for dyn ObjectKeyTrait + 'a {
fn eq(&self, other: &Self) -> bool {
self.key().eq(&other.key())
}
}
impl<'a> Eq for (dyn ObjectKeyTrait + 'a) {}
impl<'a> Eq for dyn ObjectKeyTrait + 'a {}
impl<'a> PartialOrd for (dyn ObjectKeyTrait + 'a) {
impl<'a> PartialOrd for dyn ObjectKeyTrait + 'a {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.key().partial_cmp(&other.key())
}
}
impl<'a> Ord for (dyn ObjectKeyTrait + 'a) {
impl<'a> Ord for dyn ObjectKeyTrait + 'a {
fn cmp(&self, other: &Self) -> Ordering {
self.key().cmp(&other.key())
}
}
impl<'a> core::hash::Hash for (dyn ObjectKeyTrait + 'a) {
impl<'a> core::hash::Hash for dyn ObjectKeyTrait + 'a {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
self.key().hash(state)
}
+3 -3
View File
@@ -142,15 +142,15 @@ impl<'a> std::borrow::Borrow<dyn GlyphKeyTrait + 'a> for GlyphKey {
}
}
impl<'a> PartialEq for (dyn GlyphKeyTrait + 'a) {
impl<'a> PartialEq for dyn GlyphKeyTrait + 'a {
fn eq(&self, other: &Self) -> bool {
self.key().eq(&other.key())
}
}
impl<'a> Eq for (dyn GlyphKeyTrait + 'a) {}
impl<'a> Eq for dyn GlyphKeyTrait + 'a {}
impl<'a> std::hash::Hash for (dyn GlyphKeyTrait + 'a) {
impl<'a> std::hash::Hash for dyn GlyphKeyTrait + 'a {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.key().hash(state)
}
+3 -3
View File
@@ -98,15 +98,15 @@ impl<'a> std::borrow::Borrow<dyn ShapeCacheKeyTrait + 'a> for ShapeCacheKey {
}
}
impl<'a> PartialEq for (dyn ShapeCacheKeyTrait + 'a) {
impl<'a> PartialEq for dyn ShapeCacheKeyTrait + 'a {
fn eq(&self, other: &Self) -> bool {
self.key().eq(&other.key())
}
}
impl<'a> Eq for (dyn ShapeCacheKeyTrait + 'a) {}
impl<'a> Eq for dyn ShapeCacheKeyTrait + 'a {}
impl<'a> std::hash::Hash for (dyn ShapeCacheKeyTrait + 'a) {
impl<'a> std::hash::Hash for dyn ShapeCacheKeyTrait + 'a {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.key().hash(state)
}
+2 -2
View File
@@ -62,12 +62,12 @@ impl portable_pty::MasterPty for SshPty {
Ok(*self.size.lock().unwrap())
}
fn try_clone_reader(&self) -> anyhow::Result<Box<(dyn Read + Send + 'static)>> {
fn try_clone_reader(&self) -> anyhow::Result<Box<dyn Read + Send + 'static>> {
let reader = self.reader.try_clone()?;
Ok(Box::new(reader))
}
fn take_writer(&self) -> anyhow::Result<Box<(dyn Write + Send + 'static)>> {
fn take_writer(&self) -> anyhow::Result<Box<dyn Write + Send + 'static>> {
let writer = self.writer.try_clone()?;
Ok(Box::new(writer))
}