Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Apr 21, 2022
1 parent df8c971 commit 7ec6867
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/command/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub enum Cmd {
impl Cmd {
pub async fn run(self) -> Result<()> {
pretty_env_logger::init();

let settings = Settings::new().wrap_err("could not load client settings")?;

let db_path = PathBuf::from(settings.db_path.as_str());
Expand Down
6 changes: 5 additions & 1 deletion src/command/client/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ pub struct Cmd {
}

impl Cmd {
pub async fn run(self, db: &mut (impl Database + Send + Sync), settings: &Settings) -> Result<()> {
pub async fn run(
self,
db: &mut (impl Database + Send + Sync),
settings: &Settings,
) -> Result<()> {
run(
settings,
self.cwd,
Expand Down
4 changes: 2 additions & 2 deletions src/command/server.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use clap::Parser;
use eyre::{Result, Context};
use eyre::{Context, Result};

use atuin_server::launch;
use atuin_server::settings::Settings;
Expand All @@ -22,7 +22,7 @@ pub enum Cmd {
impl Cmd {
pub async fn run(self) -> Result<()> {
pretty_env_logger::init();

let settings = Settings::new().wrap_err("could not load server settings")?;

match self {
Expand Down

0 comments on commit 7ec6867

Please sign in to comment.