Skip to content

Commit c01dbda

Browse files
committed
Fix typo in XboxPlatform struct and its references
1 parent e6440c9 commit c01dbda

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/platforms/platforms_load.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ pub fn load_platform<A: AsRef<str>, B: AsRef<str>>(
3535
//Windows only platforms
3636
use super::amazon::AmazonPlatform;
3737
use super::playnite::PlaynitePlatform;
38-
use super::xbox::XboxPlatForm;
38+
use super::xbox::XboxPlatform;
3939
match name {
4040
"amazon" => return load::<AmazonPlatform>(s),
4141
"playnite" => return load::<PlaynitePlatform>(s),
42-
"xbox" => return load::<XboxPlatForm>(s),
42+
"xbox" => return load::<XboxPlatform>(s),
4343
_ => {}
4444
}
4545
}

src/platforms/xbox/platform.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use steam_shortcuts_util::Shortcut;
1010
use crate::platforms::ShortcutToImport;
1111

1212
#[derive(Clone, Deserialize, Default)]
13-
pub struct XboxPlatForm {
13+
pub struct XboxPlatform {
1414
settings: XboxSettings,
1515
}
1616

@@ -19,7 +19,7 @@ pub struct XboxSettings {
1919
enabled: bool,
2020
}
2121

22-
impl GamesPlatform for XboxPlatForm {
22+
impl GamesPlatform for XboxPlatform {
2323
fn name(&self) -> &str {
2424
"Xbox"
2525
}
@@ -181,9 +181,9 @@ fn run_powershell_command(cmd: &str) -> Result<String, Error> {
181181
}
182182
}
183183

184-
impl FromSettingsString for XboxPlatForm {
184+
impl FromSettingsString for XboxPlatform {
185185
fn from_settings_string<S: AsRef<str>>(s: S) -> Self {
186-
XboxPlatForm {
186+
XboxPlatform {
187187
settings: load_settings(s),
188188
}
189189
}

0 commit comments

Comments
 (0)