Move module definitions after imports

The style guide says: "Put imports before module declarations."
See https://doc.rust-lang.org/style-guide/items.html

Cargo also does this automatically.
This commit is contained in:
Joscha 2025-04-28 01:45:11 +02:00
parent 97d79f5747
commit 4b11b4ce62
3 changed files with 9 additions and 9 deletions

View file

@ -1,9 +1,9 @@
mod migrate;
use clap::Parser; use clap::Parser;
use crate::Environment; use crate::Environment;
mod migrate;
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
pub enum Command { pub enum Command {
Migrate(migrate::Command), Migrate(migrate::Command),

View file

@ -1,11 +1,11 @@
mod commands;
use std::path::PathBuf; use std::path::PathBuf;
use clap::Parser; use clap::Parser;
use crate::commands::Command; use crate::commands::Command;
mod commands;
/// GedächtNAS - external storage for your brain. /// GedächtNAS - external storage for your brain.
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[command(version)] #[command(version)]

View file

@ -1,13 +1,13 @@
mod datadir;
mod lockfile;
mod v0;
mod v1;
use std::path::PathBuf; use std::path::PathBuf;
use anyhow::Context; use anyhow::Context;
use directories::ProjectDirs; use directories::ProjectDirs;
mod datadir;
mod lockfile;
mod v0;
mod v1;
pub use self::{ pub use self::{
datadir::{LockedDataDir, UnlockedDataDir}, datadir::{LockedDataDir, UnlockedDataDir},
v1::{VERSION, load_state, save_state}, v1::{VERSION, load_state, save_state},