Updated for Rust 5b11610: indexing of &str