From efeecbe70571bffe4e95f46d1476836987648d7d Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Wed, 5 Aug 2026 21:29:52 +0200 Subject: [PATCH] fix some unused-warnings --- application/backend/src/backend.rs | 4 ++-- application/note/src/note.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/application/backend/src/backend.rs b/application/backend/src/backend.rs index efda52b..551643e 100644 --- a/application/backend/src/backend.rs +++ b/application/backend/src/backend.rs @@ -30,7 +30,7 @@ use std::future::Future; use std::io::Error; use std::path::{Path, PathBuf}; use std::pin::Pin; -use sea_orm::{ActiveModelTrait, Database, DatabaseConnection, EntityTrait, QueryFilter, ColumnTrait, Set, QueryOrder, DbErr, ExprTrait, UpdateResult, QuerySelect, TransactionTrait}; +use sea_orm::{ActiveModelTrait, Database, DatabaseConnection, EntityTrait, QueryFilter, ColumnTrait, Set, QueryOrder, DbErr, ExprTrait, QuerySelect}; use tokio::runtime::Runtime; use std::sync::{Arc}; use std::thread::JoinHandle; @@ -732,7 +732,7 @@ impl BackendHandle { update = update.col_expr(Column::Title, Expr::value(title)).col_expr(Column::FixedTitle, Expr::value(true)); } - // for some reason using the transaction doesn't work and this function hangs + // TODO: for some reason using the transaction doesn't work and this function hangs //let tx = bhandle.backend.db.begin().await?; let result = update diff --git a/application/note/src/note.rs b/application/note/src/note.rs index 9c755ee..03bca8a 100644 --- a/application/note/src/note.rs +++ b/application/note/src/note.rs @@ -34,7 +34,7 @@ use sea_orm::sea_query::prelude::Utc; use backend::backend::{BackendHandle, BroadcastMessage, NoteContentRet, NoteId, NoteTitleUpdate, RenameNoteRet, SaveNoteResult}; use backend::lockmanager::NoteLock; use entity::note::NoteType; -use ui_rs::{action, dialog, doc_cast, ui_actions, UiModel}; +use ui_rs::{action, doc_cast, ui_actions, UiModel}; use ui_rs::ui::*; use crate::AppStates; use crate::window::NoteTypeTabView; @@ -474,7 +474,6 @@ impl Note { }; let proxy = doc.doc_proxy(); - let collection_id = self.collection_id; let backend = self.backend.clone(); obj.dialog() -- 2.52.0