- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3
          Add measurement-set command
          #316
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -448,6 +448,15 @@ impl MeasurementSet { | |
| } | ||
| } | ||
|  | ||
| impl std::iter::IntoIterator for MeasurementSet { | ||
| type Item = Measurement; | ||
| type IntoIter = <std::collections::HashSet<attest_data::Measurement> as std::iter::IntoIterator>::IntoIter; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is what rust suggested, it's possible I could do this in a less obfuscated way There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another way is to define an  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 
 | ||
|  | ||
| fn into_iter(self) -> Self::IntoIter { | ||
| self.0.into_iter() | ||
| } | ||
| } | ||
|  | ||
| /// A collection of measurement values that is used as a source of truth when | ||
| /// appraising the set of measurements derived from an attestation. | ||
| pub struct ReferenceMeasurements(pub(crate) HashSet<Measurement>); | ||
|  | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: probably don't need this comment