qemu-display: some extra derive

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-04-10 12:56:32 +04:00
parent fd67aa0277
commit 4395b41fd7
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,7 @@ impl<H: ClipboardHandler> ClipboardListener<H> {
}
#[derive(derivative::Derivative)]
#[derivative(Debug)]
#[derivative(Clone, Debug)]
pub struct Clipboard {
#[derivative(Debug = "ignore")]
pub proxy: ClipboardProxy<'static>,

View File

@ -104,6 +104,7 @@ impl Console {
Ok(self.proxy.height().await?)
}
#[tracing::instrument(skip(self, handler))]
pub async fn register_listener<H: ConsoleListenerHandler>(&self, handler: H) -> Result<()> {
let (p0, p1) = UnixStream::pair()?;
let p0 = util::prepare_uds_pass(