Fixed shadowed lifetimes for ring.rs and slice.rs