Skip to content

Commit

Permalink
#156 - fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Sep 24, 2024
1 parent 48b0d6c commit 6bce55b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scylla-server/src/services/data_service.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use prisma_client_rust::{chrono::DateTime, chrono::FixedOffset, chrono::Utc, chrono::NaiveDateTime, QueryError};
use prisma_client_rust::{chrono::DateTime, QueryError};


use crate::{prisma, processors::ClientData, Database};
Expand Down Expand Up @@ -41,7 +41,8 @@ pub async fn get_data_by_datetime(
db: &Database,
datetime: String,
) -> Result<Vec<public_data::Data>, QueryError> {
let datetime_utc = DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp_millis(datetime.parse::<i64>().unwrap()).unwrap(), Utc);
let datetime_utc = DateTime::from_timestamp_millis(datetime.parse::<i64>().unwrap())
.expect("Could not parse timestamp");

db.data()
.find_many(vec![
Expand Down

0 comments on commit 6bce55b

Please sign in to comment.