mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 21:42:23 -05:00
Place mods under all imports
This commit is contained in:
parent
1eac00e89a
commit
2566f9aaf6
3 changed files with 8 additions and 8 deletions
|
@ -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)?;
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue