INNER CODE UNIT · Rust
resolve_path
attackgoat/vk-graph · crates/vk-graph-hot/src/lib.rs:73
fn resolve_path(
&self,
path: &str,
context: &Self::IncludeContext,
) -> Result<ResolvedInclude<Self::IncludeContext>, BoxedIncludeProviderError> {
let path = context.join(path);
Ok(ResolvedInclude {
resolved_path: ResolvedIncludePath(path.to_str().unwrap_or_default().to_string()),
context: path
.parent()
.map(|path| path.to_path_buf())
.unwrap_or_default(),
})
}
}
let mut file_include_provider = FileIncludeProvider::default();