From 01486830e334cf80eac2b88b4eb29f329c3ddf4d Mon Sep 17 00:00:00 2001 From: LucaSforza Date: Wed, 7 Jun 2023 17:56:07 +0200 Subject: [PATCH] Added constructor for Settings called with_path --- vm/src/vm/setting.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vm/src/vm/setting.rs b/vm/src/vm/setting.rs index 6158a30a6..3b9c82caf 100644 --- a/vm/src/vm/setting.rs +++ b/vm/src/vm/setting.rs @@ -82,6 +82,14 @@ pub struct Settings { pub profile_format: Option, } +impl Settings { + pub fn with_path(path: String) -> Self { + let mut settings = Self::default(); + settings.path_list.push(path); + settings + } +} + /// Sensible default settings. impl Default for Settings { fn default() -> Self {