You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if this is trivial to Rust experts but I ran into trouble refactoring the Sophia Graph implementation of HDT for the 0.9 changes so I just wanted to ask if there is an obvious solution to this:
The new return type signatures of triples and triples_matching now contain "impl Iterator<...>" but hdt_rs returns different types of Iterators depending on the pattern for triples_matching, so I have to use Box as shown below.
However the compiler now gives me warning: impl trait in impl method signature does not match trait method signature and advises me to add #[allow(refining_impl_trait)] to silence this warning.
However I'm hesitant to do that as I'm not sure if that has some negative consequences for the users. Shall I just silence the compiler or is there some other solution to this?
Sorry if this is trivial to Rust experts but I ran into trouble refactoring the Sophia Graph implementation of HDT for the 0.9 changes so I just wanted to ask if there is an obvious solution to this:
The new return type signatures of triples and triples_matching now contain "impl Iterator<...>" but hdt_rs returns different types of Iterators depending on the pattern for triples_matching, so I have to use Box as shown below.
However the compiler now gives me
warning: impl trait in impl method signature does not match trait method signature
and advises me to add#[allow(refining_impl_trait)]
to silence this warning.However I'm hesitant to do that as I'm not sure if that has some negative consequences for the users. Shall I just silence the compiler or is there some other solution to this?
The text was updated successfully, but these errors were encountered: