1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Update zokrates_fs_resolver/src/lib.rs

This commit is contained in:
Thibaut Schaeffer 2020-08-14 12:18:00 +02:00 committed by GitHub
parent ace1753355
commit 5875a4d70f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ impl<'a> Resolver<io::Error> for FileSystemResolver<'a> {
}
// paths starting with `./` or `../` are interpreted relative to the current file
// other paths `abc/def` are interpreted relative to standard library root path
// other paths `abc/def` are interpreted relative to the standard library root path
let base = match source.components().next() {
Some(Component::CurDir) | Some(Component::ParentDir) => {
PathBuf::from(current_location).parent().unwrap().into()