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
{{ message }}
This repository was archived by the owner on Mar 30, 2026. It is now read-only.
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 lifetime of the string reference returned by
DepTriple::relationis bound toDepTriple. This is ok whenDepTripleowns 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.