Skip to content

Commit

Permalink
chore: run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Oct 24, 2024
1 parent 08c72ed commit 22bd228
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ mod consts;

use clap::Command;
use clap::CommandFactory;
use cli::Cli;
use clap_complete::generate_to;
use clap_complete::Shell::{Bash, Fish, Zsh};
use clap_mangen::Man;
use cli::Cli;

static NAME: &str = "sakaya";

Expand Down
4 changes: 3 additions & 1 deletion src/cli/clap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ use clap::{Parser, Subcommand};
use std::net::SocketAddrV4;
use std::path::PathBuf;

use crate::consts::{DEFAULT_ADDRESS, DEFAULT_DIRECTORY, DEFAULT_PORT, DEFAULT_WINE32_PREFIX, DEFAULT_WINE64_PREFIX};
use crate::consts::{
DEFAULT_ADDRESS, DEFAULT_DIRECTORY, DEFAULT_PORT, DEFAULT_WINE32_PREFIX, DEFAULT_WINE64_PREFIX,
};

fn styles() -> Styles {
Styles::styled()
Expand Down
4 changes: 2 additions & 2 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod serve;
pub mod router;
pub mod routes;
pub mod serve;

pub use serve::*;
pub use router::*;
pub use serve::*;
3 changes: 1 addition & 2 deletions src/server/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ use axum::Router;
use super::routes;

pub fn router() -> Router {
Router::new()
.route("/open", post(routes::open))
Router::new().route("/open", post(routes::open))
}

0 comments on commit 22bd228

Please sign in to comment.