Skip to content

Commit

Permalink
Make literal_path a String
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Nov 21, 2023
1 parent 8e71534 commit 3741507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use {super::*, CompileErrorKind::*};
#[derive(Debug)]
pub(crate) struct Import {
canonical_path: Option<PathBuf>,
literal_path: PathBuf,
literal_path: String,
}

impl Import {
Expand Down Expand Up @@ -33,7 +33,7 @@ impl<'src> Analyzer<'src> {
if let Item::Include { path, .. } = item {
Some(Import {
canonical_path: None,
literal_path: Path::new(path).to_owned(),
literal_path: (*path).into(),
})
} else {
None
Expand Down

0 comments on commit 3741507

Please sign in to comment.