Add utility to help format the code (#247)

Signed-off-by: Aisuko <urakiny@gmail.com>
This commit is contained in:
Aisuko
2022-10-11 06:17:10 +02:00
committed by GitHub
parent fac58803cc
commit 40c55e542d
39 changed files with 415 additions and 421 deletions
+3 -5
View File
@@ -38,13 +38,11 @@ impl From<ItchGame> for ShortcutOwned {
}
}
impl NeedsPorton<ItchPlatform> for ItchGame{
impl NeedsPorton<ItchPlatform> for ItchGame {
fn needs_proton(&self, _platform: &ItchPlatform) -> bool {
self.executable.ends_with("exe")
}
#[cfg(target_family = "unix")]
fn create_symlinks(&self, platform: &ItchPlatform) -> bool {
platform.settings.create_symlinks
@@ -54,4 +52,4 @@ impl NeedsPorton<ItchPlatform> for ItchGame{
fn create_symlinks(&self, _platform: &ItchPlatform) -> bool {
false
}
}
}