• M
    Remove lifetime from StaticMutex and assume 'static. · 44a2af32
    Mara Bos 提交于
    StaticMutex is only ever used with as a static (as the name already
    suggests). So it doesn't have to be generic over a lifetime, but can
    simply assume 'static.
    
    This 'static lifetime guarantees the object is never moved, so this is
    no longer a manually checked requirement for unsafe calls to lock().
    44a2af32
mutex.rs 2.6 KB