@@ -6,7 +6,7 @@ use std::convert::{From, TryInto};
6
6
use std:: fs:: { File , OpenOptions } ;
7
7
use std:: io:: { self , BufWriter , LineWriter , Write } ;
8
8
use std:: os:: unix:: fs:: OpenOptionsExt ;
9
- use std:: path:: Path ;
9
+ use std:: path:: { Path , PathBuf } ;
10
10
use std:: str:: FromStr ;
11
11
use std:: sync:: Mutex ;
12
12
@@ -270,7 +270,7 @@ impl FromStr for Level {
270
270
#[ serde( deny_unknown_fields) ]
271
271
pub struct LoggerConfig {
272
272
/// Named pipe or file used as output for logs.
273
- pub log_path : std :: path :: PathBuf ,
273
+ pub log_path : PathBuf ,
274
274
/// The level of the Logger.
275
275
pub level : Option < Level > ,
276
276
/// When enabled, the logger will append to the output the severity of the log entry.
@@ -280,7 +280,7 @@ pub struct LoggerConfig {
280
280
/// Use the new logger format.
281
281
pub new_format : Option < bool > ,
282
282
/// The profile file to output.
283
- pub profile_file : Option < std :: path :: PathBuf > ,
283
+ pub profile_file : Option < PathBuf > ,
284
284
}
285
285
286
286
/// Error with actions on the `LoggerConfig`.
@@ -378,7 +378,7 @@ fn old_log<S: Subscriber + for<'span> LookupSpan<'span>>(
378
378
}
379
379
380
380
fn flame < S : Subscriber + for < ' span > LookupSpan < ' span > > (
381
- profile_file : & std :: path :: PathBuf ,
381
+ profile_file : & PathBuf ,
382
382
) -> FlameLayer < S , BufWriter < File > > {
383
383
// We can discard the flush guard as
384
384
// > This type is only needed when using
0 commit comments