From ed4ce6e5980dfb61a289354231dd514105248c7e Mon Sep 17 00:00:00 2001 From: Samuel Thomas Date: Fri, 5 Jul 2024 10:14:47 -0500 Subject: [PATCH] [hotfix] Fix web compilation error --- calyx-utils/src/pos_string.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/calyx-utils/src/pos_string.rs b/calyx-utils/src/pos_string.rs index 26528c0d54..90c0b96913 100644 --- a/calyx-utils/src/pos_string.rs +++ b/calyx-utils/src/pos_string.rs @@ -1,3 +1,5 @@ +use std::path::PathBuf; + use crate::{GPosIdx, WithPos}; /// A positioned string. @@ -22,6 +24,12 @@ impl From for String { } } +impl From for PathBuf { + fn from(value: PosString) -> Self { + value.data.into() + } +} + impl ToString for PosString { fn to_string(&self) -> String { self.data.to_string()