Commit b5383647 authored by NOEL Philippe's avatar NOEL Philippe

Remove const for the list of all atom type

parent c4c85ce1
Pipeline #73230 passed with stages
in 50 seconds
...@@ -54,7 +54,7 @@ fn parse_int(s: &str) -> i64 { ...@@ -54,7 +54,7 @@ fn parse_int(s: &str) -> i64 {
/// ``` /// ```
pub fn parse_pdb(pdb: &str, name: &str) -> Protein { pub fn parse_pdb(pdb: &str, name: &str) -> Protein {
// Allocate here to avoid multiple allocation for every call // Allocate here to avoid multiple allocation for every call
const atom_type: HashMap<&str, AtomTypes> = [ let atom_type: HashMap<&str, AtomTypes> = [
("ARG", AtomTypes::AminoAcid), ("ARG", AtomTypes::AminoAcid),
("LYS", AtomTypes::AminoAcid), ("LYS", AtomTypes::AminoAcid),
("ASN", AtomTypes::AminoAcid), ("ASN", AtomTypes::AminoAcid),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment