mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
virtio-devices: vsock: Fix clippy issue in tests
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
05c79119b9
commit
cf86ca15c2
@ -972,7 +972,7 @@ mod tests {
|
||||
}
|
||||
impl LocalListener {
|
||||
fn new<P: AsRef<Path> + Clone>(path: P) -> Self {
|
||||
let path_buf = path.clone().as_ref().to_path_buf();
|
||||
let path_buf = path.as_ref().to_path_buf();
|
||||
let sock = UnixListener::bind(path).unwrap();
|
||||
sock.set_nonblocking(true).unwrap();
|
||||
Self {
|
||||
|
Loading…
x
Reference in New Issue
Block a user