Skip to content

Commit

Permalink
Update generator.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Wangler <oliver@wngr.de>
  • Loading branch information
mara-schulke and wngr authored Aug 17, 2023
1 parent f30f936 commit e18f84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Generator {
pub const TONIC_INCLUDE_FILE: &str = "mod.rs";

/// Run the generator for a dependency and output files into `out`
pub async fn run(&self, output: &Path) -> eyre::Result<()> {
pub async fn run(&self, output: impl AsRef<Path>) -> eyre::Result<()> {
let protoc = protoc_bin_path().wrap_err("Unable to locate vendored protoc")?;

std::env::set_var("PROTOC", protoc.clone());
Expand Down

0 comments on commit e18f84d

Please sign in to comment.