Skip to content

Commit 03d13b6

Browse files
JonathanWoollett-LightJonathan Woollett-Light
authored andcommitted
refactor: Import std::path::PathBuf
Imports `std::path::PathBuf` to avoid writing the full path in multiple places. Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
1 parent 891afd2 commit 03d13b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vmm/src/vmm_config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::convert::{From, TryInto};
66
use std::fs::{File, OpenOptions};
77
use std::io::{self, LineWriter};
88
use std::os::unix::fs::OpenOptionsExt;
9-
use std::path::Path;
9+
use std::path::{Path, PathBuf};
1010
use std::str::FromStr;
1111
use std::sync::Mutex;
1212

@@ -267,7 +267,7 @@ impl FromStr for Level {
267267
#[serde(deny_unknown_fields)]
268268
pub struct LoggerConfig {
269269
/// Named pipe or file used as output for logs.
270-
pub log_path: std::path::PathBuf,
270+
pub log_path: PathBuf,
271271
/// The level of the Logger.
272272
pub level: Option<Level>,
273273
/// When enabled, the logger will append to the output the severity of the log entry.

0 commit comments

Comments
 (0)