Skip to content

Commit

Permalink
add comments to helper functions
Browse files Browse the repository at this point in the history
Signed-off-by: Firas Ghanmi <[email protected]>
  • Loading branch information
fghanmi committed Sep 30, 2024
1 parent d197058 commit 8f89419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tough/src/editor/signed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ trait TargetsWalker {
}
}

// Helper function used in target_path
// Helper function: used in target_path function
async fn verify_existing_target(&self, dest: PathBuf, repo_target: &&Target) -> Result<()> {
let url = Url::from_file_path(&dest)
.ok()
Expand Down
2 changes: 1 addition & 1 deletion tough/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ async fn load_delegations(
Ok(())
}

// Helper function for load_targets
// Helper function: used in load_targets function
async fn fetch_target_metadata(
transport: &dyn Transport,
targets_url: Url,
Expand Down

0 comments on commit 8f89419

Please sign in to comment.