Use contains instead of iter for error label check

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 2.0.0-beta.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The contains_label method on the Error type currently uses an iterator to check for the presence of a label. The storage of labels was updated to use a HashSet in RUST-830, so we should update contains_label as well to use HashSet::contains to avoid iterating the entire set.

              Assignee:
              Isabel Atkinson
              Reporter:
              Isabel Atkinson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: