mirror of
https://github.com/pcvolkmer/bzkf-rwdp-check.git
synced 2025-04-19 11:06:51 +00:00
chore: code cleanup
This commit is contained in:
parent
ab15e5c9ff
commit
38f9fe3628
@ -18,9 +18,10 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use mysql::prelude::Queryable;
|
||||
use mysql::{params, Pool};
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::common::{ExportData, Icd10GroupSize};
|
||||
use crate::resources::{EXPORT_QUERY, SQL_QUERY};
|
||||
|
15
src/main.rs
15
src/main.rs
@ -88,10 +88,17 @@ fn print_items(items: &[Icd10GroupSize]) {
|
||||
}
|
||||
|
||||
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 {
|
||||
true => style("ein").yellow(),
|
||||
false => style("nicht ein (Standard)").green()
|
||||
}).as_str());
|
||||
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(),
|
||||
false => style("nicht ein (Standard)").green(),
|
||||
}
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user