Skip to content

Commit

Permalink
[hotfix] Fix web compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpthomas committed Jul 5, 2024
1 parent 4604d62 commit ed4ce6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions calyx-utils/src/pos_string.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::path::PathBuf;

use crate::{GPosIdx, WithPos};

/// A positioned string.
Expand All @@ -22,6 +24,12 @@ impl From<PosString> for String {
}
}

impl From<PosString> for PathBuf {
fn from(value: PosString) -> Self {
value.data.into()
}
}

impl ToString for PosString {
fn to_string(&self) -> String {
self.data.to_string()
Expand Down

0 comments on commit ed4ce6e

Please sign in to comment.