Skip to content

Commit

Permalink
Comment on normalize_target
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Feb 23, 2024
1 parent d82e2e1 commit 52df77e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yash-builtin/src/command/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ impl NormalizeEnv for Env {
/// This function makes sure any path contained in the target is absolute and
/// names an executable file. If the path cannot be normalized, this function
/// returns an error.
///
/// The error returned from this function does not contain any message because
/// this function is used only by [`categorize`], which only need to report
/// that the target is not found.
fn normalize_target<E: NormalizeEnv>(env: &E, target: &mut Target) -> Result<(), ()> {
match target {
Target::Function(_) | Target::Builtin { path: None, .. } => Ok(()),
Expand Down

0 comments on commit 52df77e

Please sign in to comment.