Closed kinetiknz closed 5 years ago
It uses the same (implicit) lifetime as &mut self, so the result must live as long as the ContextOps implementor. The existing implementations of ContextOps can keep using 'static if they're doing something as simple as returning a 'static &str.
This allows implementations to return a value with a shorter lifetime, e.g. tied to the associated implementation of ContextOp.
r? @ChunMinChang please
This change is