diff --git a/build.rs b/build.rs index 3880bf3..c7a513e 100644 --- a/build.rs +++ b/build.rs @@ -21,7 +21,7 @@ use sqlx::types::time::OffsetDateTime; fn main() { // note: add error checking yourself. let output = Command::new("git") - .args(&["rev-parse", "HEAD"]) + .args(["rev-parse", "HEAD"]) .output() .unwrap(); let git_hash = String::from_utf8(output.stdout).unwrap(); diff --git a/src/api/v1/meta.rs b/src/api/v1/meta.rs index a8b7743..216dfda 100644 --- a/src/api/v1/meta.rs +++ b/src/api/v1/meta.rs @@ -18,8 +18,6 @@ use actix_web::{web, HttpResponse, Responder}; use derive_builder::Builder; use serde::{Deserialize, Serialize}; -use libconductor::Conductor; - use crate::AppCtx; use crate::{GIT_COMMIT_HASH, VERSION}; diff --git a/src/api/v1/webhook.rs b/src/api/v1/webhook.rs index c6d8f6d..159d307 100644 --- a/src/api/v1/webhook.rs +++ b/src/api/v1/webhook.rs @@ -14,12 +14,10 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -use std::collections::HashMap; - -use actix_web::{web, HttpRequest, HttpResponse, Responder}; +use actix_web::{web, HttpResponse, Responder}; use serde::{Deserialize, Serialize}; -use libconductor::{Conductor, EventType}; +use libconductor::EventType; use crate::errors::*; use crate::AppCtx;