Skip to content

Commit

Permalink
Add Rustdoc::current_dir method to run-make-support
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 3, 2024
1 parent d6d3b34 commit cc29dfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tools/run-make-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ macro_rules! impl_common_helpers {
}
output
}

/// Set the path where the command will be run.
pub fn current_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
self.cmd.current_dir(path);
self
}
}
};
}
Expand Down

0 comments on commit cc29dfa

Please sign in to comment.