Switch to PathBuf to avoid Path turning into a fat pointer. Avoids growing Constraints

This commit is contained in:
Brendan Hansknecht 2023-04-09 21:14:05 -07:00
parent 9a87675368
commit c440b2ca05
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
4 changed files with 17 additions and 13 deletions

View file

@ -15,7 +15,7 @@ use roc_module::symbol::{Interns, Symbol};
use roc_region::all::{Loc, Region};
use std::fmt;
use std::fmt::Write;
use std::path::Path;
use std::path::PathBuf;
pub const TYPE_NUM: &str = "Num";
pub const TYPE_INTEGER: &str = "Integer";
@ -3782,7 +3782,7 @@ pub enum Category {
List,
Str,
Character,
IngestedFile(Box<Path>),
IngestedFile(Box<PathBuf>),
// records
Record,