impl TryFrom instead of having conversion functions

This commit is contained in:
2025-06-25 00:35:35 +02:00
parent 2f381d540b
commit b685c3a831
5 changed files with 396 additions and 374 deletions

View File

@@ -149,7 +149,7 @@ async fn main() {
let mut chapters = match get_chapters(client, &manga.id).await {
Ok(v) => v,
Err(e) => {
eprintln!("ERROR: {:#?}", e);
eprintln!("ERROR: {e:#?}");
std::process::exit(1);
}
};
@@ -458,7 +458,7 @@ async fn select_manga_from_search(
let choice = match select::select(&entries) {
Ok(v) => v,
Err(e) => {
eprintln!("ERROR: Failed to select: {:?}", e);
eprintln!("ERROR: Failed to select: {e:?}");
std::process::exit(1);
}
};