@@ 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]]