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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue