Skip to content

Commit

Permalink
ref: Refactor before population data (#30)
Browse files Browse the repository at this point in the history
* ref: `unused_imports` for `log` macro

* doc: update
  • Loading branch information
pouriya authored Feb 12, 2024
1 parent 89df1d7 commit e7eb6fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keshvar-code-generator/src/Cargo.header.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "keshvar"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
description = "collection of all sorts of useful information for every country"
license = "BSD-3-Clause"
Expand Down
1 change: 1 addition & 0 deletions keshvar-code-generator/src/countries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub fn generate_mod(
.open(destination_file.clone())
.context(format!("Could not open {:?}", destination_file))?;
utils::write_first_comments(&mut mod_rs_file, file!())?;
mod_rs_file.write_all(b"//! Contains separate modules for every country.\n\n")?;
// `filename_list` is sorted so we iterate over it and lookup info from `countries_info`:
for (_, info) in countries_info_list {
mod_rs_file.write_all(utils::country_cfg_feature_and_commented_name(info, 0).as_bytes())?;
Expand Down
1 change: 1 addition & 0 deletions keshvar-code-generator/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ macro_rules! log {
{$crate::utils::append_to_log_file(format!("{}:{} | {}\n", file!(), line!(), format!($text, $($parameters),+))); true}
}
}
#[allow(unused_imports)]
pub use log;

pub fn remove_log_file() {
Expand Down
2 changes: 2 additions & 0 deletions src/countries/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// DO NOT TOUCH THIS FILE. (Auto-generated by `keshvar-code-generator/src/countries.rs`)

//! Contains separate modules for every country.
#[cfg(feature = "ad")] // The Principality of Andorra (Europe)
pub mod ad;
#[cfg(feature = "ae")] // The United Arab Emirates (Asia)
Expand Down

0 comments on commit e7eb6fc

Please sign in to comment.