chore: apply lints

This commit is contained in:
Aravinth Manivannan 2022-11-16 15:39:41 +05:30
parent 96cd918dfe
commit 45a5d5ce9f
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
3 changed files with 3 additions and 7 deletions

View File

@ -21,7 +21,7 @@ use sqlx::types::time::OffsetDateTime;
fn main() { fn main() {
// note: add error checking yourself. // note: add error checking yourself.
let output = Command::new("git") let output = Command::new("git")
.args(&["rev-parse", "HEAD"]) .args(["rev-parse", "HEAD"])
.output() .output()
.unwrap(); .unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap(); let git_hash = String::from_utf8(output.stdout).unwrap();

View File

@ -18,8 +18,6 @@ use actix_web::{web, HttpResponse, Responder};
use derive_builder::Builder; use derive_builder::Builder;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use libconductor::Conductor;
use crate::AppCtx; use crate::AppCtx;
use crate::{GIT_COMMIT_HASH, VERSION}; use crate::{GIT_COMMIT_HASH, VERSION};

View File

@ -14,12 +14,10 @@
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
use std::collections::HashMap; use actix_web::{web, HttpResponse, Responder};
use actix_web::{web, HttpRequest, HttpResponse, Responder};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use libconductor::{Conductor, EventType}; use libconductor::EventType;
use crate::errors::*; use crate::errors::*;
use crate::AppCtx; use crate::AppCtx;