Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alw3ys committed Apr 5, 2024
1 parent c967b11 commit 7249328
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cli/src/command/service.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::config::Config;
use chrono::{DateTime, Utc};
use clap::Command;
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};

pub fn sub_command() -> Command {
Command::new("service")
Expand Down Expand Up @@ -58,7 +58,7 @@ fn format_time_ago(from_datetime: DateTime<Utc>) -> String {
let now = Utc::now();
let duration = now.signed_duration_since(from_datetime);

return if duration.num_days() >= 1 {
if duration.num_days() >= 1 {
format!("{}d", duration.num_days())
} else if duration.num_hours() >= 1 {
format!("{}h", duration.num_hours())
Expand All @@ -74,5 +74,5 @@ fn format_time_ago(from_datetime: DateTime<Utc>) -> String {
#[derive(Debug, Serialize, Deserialize)]
struct Service {
name: String,
updated_at: DateTime<Utc>
updated_at: DateTime<Utc>,
}
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ use crate::command::login::login;
use crate::command::logout::logout;
use crate::command::new::new;
use crate::command::run::run;
use crate::command::service::list_services;
use crate::command::session::session;
use crate::command::token::list_token;
use crate::command::{certificate, deploy, env, new, run, service, token};
use crate::config::{Config, VERSION};
use clap::Command;
use crate::command::service::list_services;

fn cli() -> Command {
Command::new("dosei")
Expand Down
2 changes: 1 addition & 1 deletion doseid/src/server/project/route.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::config::Config;
use crate::server::deployment::schema::Deployment;
use crate::server::deployment::schema::DeploymentStatus;
use crate::server::project::schema::Project;
use crate::server::project::GitSource;
use crate::server::session::validate_session;
use crate::server::deployment::schema::DeploymentStatus;
use axum::extract::Path;
use axum::http::StatusCode;
use axum::{Extension, Json};
Expand Down

0 comments on commit 7249328

Please sign in to comment.