Remove lifetime requirement of the resource in lock(), and make a copy of it in the Lock. Reference the lock manager in the Lock to keep the same lifetime semantics (this could also be PhantomData).
Remove lifetime requirement of the resource in lock(), and make a copy of it in the Lock. Reference the lock manager in the Lock to keep the same lifetime semantics (this could also be PhantomData).

badboy/redlock-rs