pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
214 stars 23 forks source link

Correct paths in namespace macro #39

Closed MattesWhite closed 4 years ago

MattesWhite commented 4 years ago

When the namespace! macro is used like this (2018 edition):

use sophia::namespace;

namespace!(...);

instead of using

#[use_macro]
extern crate sophia;

namespace!(...);

The macro throws an error because the ns_term! is not exported.

This PR fixes this issue by adding the absolute path to macro-calls inside the macros.

pchampin commented 4 years ago

Thanks :)