diff --git a/.woodpecker.yml b/.woodpecker.yml index 8785d9a..532ef2f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,4 +2,4 @@ pipeline: test: image: rust commands: - - cargo test \ No newline at end of file + - cargo test diff --git a/server/src/api.rs b/server/src/api.rs index e539ede..09f6eba 100644 --- a/server/src/api.rs +++ b/server/src/api.rs @@ -6,14 +6,13 @@ use std::fmt::Debug; use std::net::SocketAddr; use std::path::{self, PathBuf}; use std::sync::Arc; -use std::time::{SystemTime, UNIX_EPOCH}; +use std::time::SystemTime; use anyhow::Context; use axum::body; use axum::extract::rejection::QueryRejection; use axum::extract::{Query, State}; -use chrono::Duration; use ssh_cert_dist_common::*; @@ -475,7 +474,8 @@ mod tests { user_key, unix_time(SystemTime::now()), unix_time(SystemTime::now() + validity), - ); + ) + .unwrap(); builder .valid_principal("git")