Place mods under all imports

This commit is contained in:
mo8it 2024-04-18 11:31:08 +02:00
parent 1eac00e89a
commit 2566f9aaf6
3 changed files with 8 additions and 8 deletions

View file

@ -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)?;

View file

@ -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;
@ -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)]

View file

@ -11,10 +11,6 @@ use std::{
time::Duration,
};
mod notify_event;
mod state;
mod terminal_event;
use crate::app_state::{AppState, ExercisesProgress};
use self::{
@ -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 },