Skip to content

Commit

Permalink
style: Formatting, typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaarelm committed Feb 18, 2024
1 parent 155909c commit 8b36b7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ pub const GAME_NAME: &str = "gametemplate";

#[derive(Parser, Debug)]
struct Args {
#[arg(long, value_name = "SEED", value_parser = |e: &str| Ok::<Logos, &str>(Logos::elite_new(e)), help = "Start a new game, optionally with specific seed")]
#[arg(
long,
value_name = "SEED",
value_parser = |e: &str| Ok::<Logos, &str>(Logos::elite_new(e)),
help = "Start a new game, optionally with specific seed"
)]
new_game: Option<Option<Logos>>,

#[arg(
Expand Down
2 changes: 1 addition & 1 deletion src/map_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use MapAction::*;
// NB. Even though map_view accesses the game singleton (because I'm too lazy
// to set it up as a widget that would take references to all the subsystems
// it needs to run), it must NOT effect any mutable change on its own. All
// changes are communicated via the renturn value.
// changes are communicated via the return value.

pub fn view_map(win: &Window) -> Option<MapAction> {
const SCROLL_STEP: i32 = 4;
Expand Down

0 comments on commit 8b36b7d

Please sign in to comment.