impl TryFrom instead of having conversion functions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user