mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +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 {
|
impl LocalListener {
|
||||||
fn new<P: AsRef<Path> + Clone>(path: P) -> Self {
|
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();
|
let sock = UnixListener::bind(path).unwrap();
|
||||||
sock.set_nonblocking(true).unwrap();
|
sock.set_nonblocking(true).unwrap();
|
||||||
Self {
|
Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user