Skip to content

Commit

Permalink
Merge branch 'main' into fix_typo
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazy authored Jan 31, 2023
2 parents 2e39ad4 + 13acfb5 commit 2eb689c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol_codegen/src/generate_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use tempfile::tempdir;
pub fn run() -> Result<(), Error> {
let input_tmpdir = tempdir()?.into_path();

let mut dir = std::fs::canonicalize(std::file!())?;
dir.push("../../../src/messages");
let mut dir = std::fs::canonicalize(std::file!().rsplit_once("/").unwrap().0)?;
dir.push("../../src/messages");
let output_path = std::fs::canonicalize(dir)?;
let output_path = output_path.to_str().unwrap();

Expand Down

0 comments on commit 2eb689c

Please sign in to comment.