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
The lifetime of the string reference returned by DepTriple::relation is bound to DepTriple. This is ok when DepTriple owns a String. However, if the string is borrowed, a more appropriate lifetime would be the actual lifetime of the string reference.
This makes the life easier for users of DepTriple, because now something like depgraph.head(idx).unwrap().relation() will complain that the relation outlives the triple.
The text was updated successfully, but these errors were encountered:
The lifetime of the string reference returned by
DepTriple::relation
is bound toDepTriple
. This is ok whenDepTriple
owns aString
. However, if the string is borrowed, a more appropriate lifetime would be the actual lifetime of the string reference.This makes the life easier for users of
DepTriple
, because now something likedepgraph.head(idx).unwrap().relation()
will complain that the relation outlives the triple.The text was updated successfully, but these errors were encountered: