Moved built_info module definition to top of file
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user