Skip to content

Commit

Permalink
Place mods under all imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Apr 18, 2024
1 parent 1eac00e commit 2566f9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ use crossterm::{
use ratatui::{backend::CrosstermBackend, Terminal};
use std::io;

mod state;

use crate::app_state::AppState;

use self::state::{Filter, UiState};

mod state;

pub fn list(app_state: &mut AppState) -> Result<()> {
let mut stdout = io::stdout().lock();
stdout.execute(EnterAlternateScreen)?;
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ use std::{
process::exit,
};

use self::{app_state::AppState, dev::DevCommands, info_file::InfoFile, watch::WatchExit};

mod app_state;
mod dev;
mod embedded;
Expand All @@ -22,8 +24,6 @@ mod progress_bar;
mod run;
mod watch;

use self::{app_state::AppState, dev::DevCommands, info_file::InfoFile, watch::WatchExit};

const CURRENT_FORMAT_VERSION: u8 = 1;
const DEVELOPING_OFFICIAL_RUSTLINGS: bool = {
#[allow(unused_assignments, unused_mut)]
Expand Down
8 changes: 4 additions & 4 deletions src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ use std::{
time::Duration,
};

mod notify_event;
mod state;
mod terminal_event;

use crate::app_state::{AppState, ExercisesProgress};

use self::{
Expand All @@ -23,6 +19,10 @@ use self::{
terminal_event::{terminal_event_handler, InputEvent},
};

mod notify_event;
mod state;
mod terminal_event;

enum WatchEvent {
Input(InputEvent),
FileChange { exercise_ind: usize },
Expand Down

0 comments on commit 2566f9a

Please sign in to comment.