Moved built_info module definition to top of file

This commit is contained in:
Jedrzej Stuczynski
2020-01-14 12:40:46 +00:00
parent 9082e93826
commit c1c41ebde1
+4 -5
View File
@@ -10,6 +10,10 @@ mod commands;
mod persistence;
mod sockets;
pub mod utils;
pub mod built_info {
// The file has been placed there by the build script.
include!(concat!(env!("OUT_DIR"), "/built.rs"));
}
fn main() {
env_logger::init();
@@ -88,11 +92,6 @@ fn main() {
}
}
pub mod built_info {
// The file has been placed there by the build script.
include!(concat!(env!("OUT_DIR"), "/built.rs"));
}
fn execute(matches: ArgMatches) -> Result<(), String> {
match matches.subcommand() {
("init", Some(m)) => Ok(commands::init::execute(m)),