Skip to content

Commit

Permalink
Fix useless conversion in lib::c_api_version (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen authored Apr 15, 2021
1 parent fcca8bb commit df258ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ pub fn c_api_patch_version() -> u32 {

/// The C API version in MAJOR.MINOR.PATCH format
pub fn c_api_version() -> String {
String::from(format!(
format!(
"{}.{}.{}",
c_api_major_version(),
c_api_minor_version(),
c_api_patch_version()
))
)
}

#[cfg(test)]
Expand Down

0 comments on commit df258ad

Please sign in to comment.