Skip to content

Commit df67335

Browse files
fix: lint
1 parent aa60942 commit df67335

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src-tauri/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub fn enter_database_information(app: AppHandle, uri: String, name: String) {
134134
}
135135

136136
#[tauri::command]
137-
pub async fn login(app: AppHandle, username: String, password: String) -> Result<bool, String> {
137+
pub async fn login(username: String, password: String) -> Result<bool, String> {
138138
let client = Client::new();
139139
let res = client
140140
.post("http://localhost:5000/login")

src-tauri/src/state.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ pub struct LoginRequest {
136136
}
137137

138138
#[derive(Deserialize)]
139+
#[allow(dead_code)]
139140
pub struct LoginResponse {
140141
pub success: bool,
141-
pub error: Option<String>,
142+
pub message: String,
142143
}
143144

144145
impl AppState {

0 commit comments

Comments
 (0)