misc: tpm: drop extern crate, use modern rust

This commit is part of a series of similar commits.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster
2025-09-05 09:21:07 +02:00
committed by Rob Bradford
parent 7de45b3a75
commit d32b2dc137
3 changed files with 2 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ use std::{mem, ptr};
use anyhow::anyhow;
use libc::{c_void, sockaddr_storage, socklen_t};
use log::{debug, error};
use thiserror::Error;
use crate::socket::SocketDev;

View File

@@ -3,9 +3,6 @@
// SPDX-License-Identifier: Apache-2.0
//
#[macro_use]
extern crate log;
pub mod emulator;
pub mod socket;

View File

@@ -8,6 +8,7 @@ use std::os::unix::io::{AsRawFd, RawFd};
use std::os::unix::net::UnixStream;
use anyhow::anyhow;
use log::debug;
use thiserror::Error;
use vmm_sys_util::sock_ctrl_msg::ScmSocket;