mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-17 02:21:43 +02:00
chore: migrate to rust 2024 (#2635)
* chore: upgrade to 2024 edition * ugh unsafe * format * nixxxxxxxxxxx why
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "atuin-server-database"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
description = "server database library for atuin"
|
||||
|
||||
version = { workspace = true }
|
||||
|
@ -15,7 +15,7 @@ use self::{
|
||||
};
|
||||
use async_trait::async_trait;
|
||||
use atuin_common::record::{EncryptedData, HostId, Record, RecordIdx, RecordStatus};
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use serde::{Serialize, de::DeserializeOwned};
|
||||
use time::{Date, Duration, Month, OffsetDateTime, Time, UtcOffset};
|
||||
use tracing::instrument;
|
||||
|
||||
@ -83,7 +83,7 @@ pub trait Database: Sized + Clone + Send + Sync + 'static {
|
||||
async fn status(&self, user: &User) -> DbResult<RecordStatus>;
|
||||
|
||||
async fn count_history_range(&self, user: &User, range: Range<OffsetDateTime>)
|
||||
-> DbResult<i64>;
|
||||
-> DbResult<i64>;
|
||||
|
||||
async fn list_history(
|
||||
&self,
|
||||
|
Reference in New Issue
Block a user