Add rustfmt.toml (same as core and server) and apply cargo fmt

Formatting only. CI now runs cargo fmt --check here as in the other Rust repos.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-17 00:49:00 +09:00
co-authored by Claude Opus 5.5
parent 923c466dea
commit 578ae57a0a
7 changed files with 61 additions and 60 deletions
+10 -5
View File
@@ -223,7 +223,15 @@ fn list_items(app: State<'_, App>) -> CmdResult<Vec<Summary>> {
#[tauri::command]
fn get_item(app: State<'_, App>, id: String) -> CmdResult<Detail> {
let d = app.core.get_item(id).map_err(err)?;
Ok(Detail { id: d.id, title: d.title, username: d.username, password: d.password, urls: d.urls, totp: d.totp, notes: d.notes })
Ok(Detail {
id: d.id,
title: d.title,
username: d.username,
password: d.password,
urls: d.urls,
totp: d.totp,
notes: d.notes,
})
}
#[tauri::command]
@@ -282,10 +290,7 @@ fn copy_secret(app: State<'_, App>, id: String, field: Option<String>) -> CmdRes
cb.set().exclude_from_monitoring().exclude_from_cloud().exclude_from_history().text(secret.to_string())
}
#[cfg(not(windows))]
{
cb.set_text(secret.to_string())
}
.map_err(|e| e.to_string())?;
{ cb.set_text(secret.to_string()) }.map_err(|e| e.to_string())?;
drop(guard);
thread::spawn(move || {
thread::sleep(CLIPBOARD_CLEAR);