summaryrefslogtreecommitdiffstats
path: root/src/launcher/settings.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-31 02:32:19 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-31 02:32:19 -0600
commitcdeee17c2be5b8b9a333b977b3e2d373b94dfe0a (patch)
tree58ec48b5bfa9afe03ebbd9716f1f90841af914e9 /src/launcher/settings.rs
parentRemove some unused imports but not all of them (diff)
do clippy stuff and change line endings
Diffstat (limited to 'src/launcher/settings.rs')
-rw-r--r--src/launcher/settings.rs4
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",