mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Store directory path as PathBuf
instead of String
.
This commit is contained in:
parent
f0020297f5
commit
6a101921c4
2 changed files with 5 additions and 4 deletions
|
@ -215,7 +215,7 @@ pub struct Opts {
|
|||
pub use_msaa: bool,
|
||||
|
||||
/// Directory for a default config directory
|
||||
pub config_dir: Option<String>,
|
||||
pub config_dir: Option<PathBuf>,
|
||||
|
||||
// don't skip any backtraces on panic
|
||||
pub full_backtraces: bool,
|
||||
|
@ -857,7 +857,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
enable_vsync: !debug_options.disable_vsync,
|
||||
webrender_stats: debug_options.webrender_stats,
|
||||
use_msaa: debug_options.use_msaa,
|
||||
config_dir: opt_match.opt_str("config-dir"),
|
||||
config_dir: opt_match.opt_str("config-dir").map(Into::into),
|
||||
full_backtraces: debug_options.full_backtraces,
|
||||
is_printing_version: is_printing_version,
|
||||
webrender_debug: debug_options.webrender_debug,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue