Skip to content

Commit

Permalink
chore: mark helpers as private
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Jan 18, 2024
1 parent a68fd99 commit 2d2acc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,11 @@ pub fn get_config_path(app_name: &String) -> AxoupdateResult<Utf8PathBuf> {
}
}

pub fn load_receipt_from_path(
install_receipt_path: &Utf8PathBuf,
) -> AxoupdateResult<InstallReceipt> {
fn load_receipt_from_path(install_receipt_path: &Utf8PathBuf) -> AxoupdateResult<InstallReceipt> {
Ok(SourceFile::load_local(install_receipt_path)?.deserialize_json()?)
}

pub fn load_receipt_for(app_name: &String) -> AxoupdateResult<InstallReceipt> {
fn load_receipt_for(app_name: &String) -> AxoupdateResult<InstallReceipt> {
let Ok(receipt_prefix) = get_config_path(app_name) else {
return Err(AxoupdateError::ConfigFetchFailed {
app_name: app_name.to_owned(),
Expand Down

0 comments on commit 2d2acc4

Please sign in to comment.