We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a3f965 commit 0148683Copy full SHA for 0148683
vm/src/vm/setting.rs
@@ -82,6 +82,14 @@ pub struct Settings {
82
pub profile_format: Option<String>,
83
}
84
85
+impl Settings {
86
+ pub fn with_path(path: String) -> Self {
87
+ let mut settings = Self::default();
88
+ settings.path_list.push(path);
89
+ settings
90
+ }
91
+}
92
+
93
/// Sensible default settings.
94
impl Default for Settings {
95
fn default() -> Self {
0 commit comments