Skip to content

Commit

Permalink
rename this back to get_keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnxpl0it committed Sep 20, 2024
1 parent 8bbdcdb commit ff405c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ content = '''
Template::extract(sample, false, &mut keywords, serde_json::Value::Null);
}

pub fn expand(self) -> HashMap<String, String> {
pub fn get_keywords(self) -> HashMap<String, String> {
let mut keywords = HashMap::new();
if let Ok(toml_str) = fs::read_to_string(&self.path) {
let toml_val: Value = toml::from_str(&toml_str).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/core/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Keywords {
chrono::Local::now().day().to_string(),
);

let other_keywords = config.expand();
let other_keywords = config.get_keywords();

keywords.extend(other_keywords);
keywords
Expand Down

0 comments on commit ff405c7

Please sign in to comment.