~ma3ke/laurel

2bec884571839ae06fed2a131536fc39c098cddd — Marieke Westendorp 7 months ago 5e5d965 main
Replace fallible conversion to be infallible
1 files changed, 2 insertions(+), 2 deletions(-)

M src/structure.rs
M src/structure.rs => src/structure.rs +2 -2
@@ 135,8 135,8 @@ impl Structure {
                .expect("end of file before all atoms have been specified");
            let atom = Atom {
                resnum: line[0..5].trim().parse().expect("bad resnum integer"),
                resname: line[5..10].trim().try_into().unwrap(), // We know that the length <= 5.
                atomname: line[10..15].trim().try_into().unwrap(),
                resname: line[5..10].trim().into(),
                atomname: line[10..15].trim().into(),
                atomnum: line[15..20].trim().parse().expect("bad atomnum integer"),
                position: {
                    [&line[20..28], &line[28..36], &line[36..44]]