Skip to content

Commit

Permalink
reafactor: Remove func (not need after set pub property)
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Mar 10, 2024
1 parent 047f581 commit e14724b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/commands/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ pub fn execute() -> Result<()> {
let config_data = config::load_config().unwrap();
println!("# Version info");
println!();
println!("- Current: {}", config_data.get_current_version());
println!("- Current: {}", config_data.current_version);
println!(
"- Next major: {}",
versioning::up_major(config_data.get_current_version())
versioning::up_major(&config_data.current_version)
);
println!(
"- Next minor: {}",
versioning::up_minor(config_data.get_current_version())
versioning::up_minor(&config_data.current_version)
);
println!(
"- Next patch: {}",
versioning::up_patch(config_data.get_current_version())
versioning::up_patch(&config_data.current_version)
);
println!();
println!("# Replace targets");
Expand Down
4 changes: 0 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ pub struct FileConfig {
}

impl Config {
pub fn get_current_version(&self) -> &Version {
&self.current_version
}

pub fn get_files(&self) -> &Vec<FileConfig> {
&self.files
}
Expand Down

0 comments on commit e14724b

Please sign in to comment.