chore: code cleanup

This commit is contained in:
Paul-Christian Volkmer 2024-05-22 10:26:35 +02:00
parent ab15e5c9ff
commit 38f9fe3628
2 changed files with 13 additions and 5 deletions

View File

@ -18,9 +18,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
use std::time::Duration;
use mysql::prelude::Queryable; use mysql::prelude::Queryable;
use mysql::{params, Pool}; use mysql::{params, Pool};
use std::time::Duration;
use crate::common::{ExportData, Icd10GroupSize}; use crate::common::{ExportData, Icd10GroupSize};
use crate::resources::{EXPORT_QUERY, SQL_QUERY}; use crate::resources::{EXPORT_QUERY, SQL_QUERY};

View File

@ -88,10 +88,17 @@ fn print_items(items: &[Icd10GroupSize]) {
} }
fn print_extern_notice(include_extern: bool) { fn print_extern_notice(include_extern: bool) {
let _ = Term::stdout().write_line(format!("{} Die Datenbankanfrage schließt Meldungen mit externer Diagnose {}.", style("Hinweis:").bold().underlined(), match include_extern { let _ = Term::stdout().write_line(
format!(
"{} Die Datenbankanfrage schließt Meldungen mit externer Diagnose {}.",
style("Hinweis:").bold().underlined(),
match include_extern {
true => style("ein").yellow(), true => style("ein").yellow(),
false => style("nicht ein (Standard)").green() false => style("nicht ein (Standard)").green(),
}).as_str()); }
)
.as_str(),
);
} }
fn main() -> Result<(), Box<dyn Error>> { fn main() -> Result<(), Box<dyn Error>> {