diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-01-16 21:04:27 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-01-16 21:04:27 +0100 |
commit | d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a (patch) | |
tree | 332c78b03897b51a1a449031156bd13cc79d3aa2 /src | |
parent | f81eb4882a015ff19cb7209980ca3c7dd33bbae1 (diff) | |
download | hittekaart-d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a.tar.gz hittekaart-d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a.tar.bz2 hittekaart-d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a.zip |
import modules from crate instead of re-defining
This is a bit more DRY, as we only have one place where we need to list
all submodules. It does not give us the "unused function" warning
anymore, but we can maybe find a different solution for that?
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index a508fdc..8727003 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,16 +6,14 @@ use std::{ use clap::Parser; use color_eyre::eyre::{bail, eyre, Context, Result}; +use hittekaart::{ + gpx::{self, Compression}, + renderer, +}; use indicatif::{MultiProgress, ProgressBar, ProgressDrawTarget, ProgressStyle}; use is_terminal::IsTerminal; use rayon::ThreadPoolBuilder; -mod gpx; -mod layer; -mod renderer; - -use gpx::Compression; - #[derive(Parser, Debug, Clone)] #[command(author, version, about)] struct Args { |