From c7af3d62b31b41ec33b12a8455807e0c2dd3d516 Mon Sep 17 00:00:00 2001 From: JieningYu Date: Sat, 18 May 2024 17:26:12 +0800 Subject: [PATCH] update to use with NEXT backend --- src/main.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 37386ec..3480017 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,12 +70,12 @@ struct StaticIns { #[derive(Debug)] struct App { /// Loaded papers. - papers: HashMap, + papers: HashMap, static_ins: &'static StaticIns, split_0_pos: Option, - selected_paper: Option, - related_papers: (Option, Option), + selected_paper: Option, + related_papers: (Option, Option), nerd_font: Font, dark_mode: bool, split_axis: iced_aw::split::Axis, @@ -576,12 +576,12 @@ enum Msg { Refresh, RefreshDone(Vec), OpenPaper { - before: Option, - target: i32, - after: Option, + before: Option, + target: u64, + after: Option, }, - Accept(i32), - Accepted(i32, bool), + Accept(u64), + Accepted(u64, bool), ToggleDarkMode, SwitchSplitAxis, ToggleBg, @@ -592,9 +592,9 @@ enum Msg { #[derive(Debug, Deserialize, Clone)] struct Paper { - pid: i32, + pid: u64, info: String, - time: DateTime, + time: DateTime, name: String, email: Option, #[serde(default)]