diff options
Diffstat (limited to 'src/launcher/settings.rs')
| -rw-r--r-- | src/launcher/settings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/launcher/settings.rs b/src/launcher/settings.rs index 4dfc4ac..8453653 100644 --- a/src/launcher/settings.rs +++ b/src/launcher/settings.rs @@ -89,7 +89,7 @@ impl Settings { } pub fn get_path(&self) -> Option<&Path> { - self.path.as_ref().map(|p| p.as_path()) + self.path.as_deref() } pub async fn save_to(&self, path: impl AsRef<Path>) -> Result<(), SettingsError> { @@ -184,7 +184,7 @@ impl Instance { } } -const DEF_JVM_ARGUMENTS: [&'static str; 7] = [ +const DEF_JVM_ARGUMENTS: [&str; 7] = [ "-Xmx2G", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseG1GC", |
