File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " graph"
33version = " 0.25.1"
4- edition = " 2018 "
4+ edition = " 2021 "
55
66[dependencies ]
77anyhow = " 1.0"
Original file line number Diff line number Diff line change @@ -643,15 +643,14 @@ impl Schema {
643643 & self ,
644644 schemas : & HashMap < SchemaReference , Arc < Schema > > ,
645645 ) -> Result < ( ) , Vec < SchemaValidationError > > {
646- // Using this since std::array's .into_iter() doesn't work
647- // as expected (at least as of rustc 1.53)
648- let mut errors: Vec < SchemaValidationError > = std:: array:: IntoIter :: new ( [
646+ let mut errors: Vec < SchemaValidationError > = [
649647 self . validate_schema_types ( ) ,
650648 self . validate_derived_from ( ) ,
651649 self . validate_schema_type_has_no_fields ( ) ,
652650 self . validate_directives_on_schema_type ( ) ,
653651 self . validate_reserved_types_usage ( ) ,
654- ] )
652+ ]
653+ . into_iter ( )
655654 . filter ( Result :: is_err)
656655 // Safe unwrap due to the filter above
657656 . map ( Result :: unwrap_err)
You can’t perform that action at this time.
0 commit comments