Skip to content

Commit

Permalink
Merge pull request #620 from patochectp/minor_refactoring
Browse files Browse the repository at this point in the history
[tech] minor refactoring
  • Loading branch information
ArnaudOggy authored May 5, 2020
2 parents c9d6092 + 72db1c1 commit 9b82ece
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gtfs2ntfs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ use transit_model::Result;
#[structopt(name = "gtfs2ntfs", about = "Convert a GTFS to an NTFS.")]
struct Opt {
/// input directory.
#[structopt(short = "i", long = "input", parse(from_os_str), default_value = ".")]
#[structopt(short, long, parse(from_os_str), default_value = ".")]
input: PathBuf,

/// output directory
#[structopt(short = "o", long = "output", parse(from_os_str))]
#[structopt(short, long, parse(from_os_str))]
output: PathBuf,

/// config file
#[structopt(short = "c", long = "config", parse(from_os_str))]
#[structopt(short, long, parse(from_os_str))]
config: Option<PathBuf>,

/// prefix
#[structopt(short = "p", long = "prefix")]
#[structopt(short, long)]
prefix: Option<String>,

/// OnDemandTransport GTFS source
Expand Down
2 changes: 1 addition & 1 deletion src/gtfs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ pub struct Configuration<P: AsRef<Path>> {
pub on_demand_transport_comment: Option<String>,
}

fn read<H>(file_handler: &mut H, configuration: Configuration<impl AsRef<Path>>) -> Result<Model>
fn read<H, P: AsRef<Path>>(file_handler: &mut H, configuration: Configuration<P>) -> Result<Model>
where
for<'a> &'a mut H: read_utils::FileHandler,
{
Expand Down

0 comments on commit 9b82ece

Please sign in to comment.