Skip to content

Commit 535ab6f

Browse files
committed
Move mode enum to gui code
1 parent e6acae7 commit 535ab6f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/ui/gui.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ use crate::{
1919
},
2020
};
2121

22-
use super::Mode;
22+
#[derive(PartialEq, Clone, Copy, Debug)]
23+
enum Mode {
24+
Client,
25+
Server,
26+
MMC,
27+
}
2328

2429
pub async fn run() -> Result<(), InstallerError> {
2530
info!("Starting GUI installer...");

src/ui/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ pub mod cli;
55
#[cfg(feature = "gui")]
66
pub mod gui;
77

8-
#[derive(PartialEq, Clone, Copy, Debug)]
9-
pub enum Mode {
10-
Client,
11-
Server,
12-
MMC,
13-
}
14-
158
fn home_dir() -> Option<PathBuf> {
169
#[allow(deprecated)]
1710
std::env::home_dir()

0 commit comments

Comments
 (0)