we compiled

This commit is contained in:
filipriec
2025-04-18 21:04:36 +02:00
parent d3fcb23e22
commit ef3ecfc73f
4 changed files with 13 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
// src/tui/functions/login.rs
pub async fn handle_action(action: &str,) -> Result<String, Box<dyn std::error::Error>> {
use anyhow::{anyhow, Result};
pub async fn handle_action(action: &str,) -> Result<String> {
match action {
"previous_entry" => {
Ok("Previous entry at tui/functions/login.rs not implemented".into())
@@ -8,6 +10,6 @@ pub async fn handle_action(action: &str,) -> Result<String, Box<dyn std::error::
"next_entry" => {
Ok("Next entry at tui/functions/login.rs not implemented".into())
}
_ => Err("Unknown login action".into())
_ => Err(anyhow!("Unknown login action: {}", action))
}
}