@@ -251,31 +251,31 @@ impl<'spdx> TryFrom<(&'spdx str, &'spdx RelationshipType, &'spdx str)> for SpdxR
251
251
) -> Result < Self , Self :: Error > {
252
252
match rel {
253
253
RelationshipType :: AncestorOf => Ok ( ( left, Relationship :: AncestorOf , right) ) ,
254
- RelationshipType :: BuildToolOf => Ok ( ( left , Relationship :: BuildToolOf , right ) ) ,
255
- RelationshipType :: ContainedBy => Ok ( ( left , Relationship :: ContainedBy , right ) ) ,
256
- RelationshipType :: Contains => Ok ( ( right , Relationship :: ContainedBy , left ) ) ,
257
- RelationshipType :: DependencyOf => Ok ( ( left , Relationship :: DependencyOf , right ) ) ,
258
- RelationshipType :: DependsOn => Ok ( ( right , Relationship :: DependencyOf , left ) ) ,
254
+ RelationshipType :: BuildToolOf => Ok ( ( right , Relationship :: BuildTool , left ) ) ,
255
+ RelationshipType :: ContainedBy => Ok ( ( right , Relationship :: Contains , left ) ) ,
256
+ RelationshipType :: Contains => Ok ( ( left , Relationship :: Contains , right ) ) ,
257
+ RelationshipType :: DependencyOf => Ok ( ( right , Relationship :: Dependency , left ) ) ,
258
+ RelationshipType :: DependsOn => Ok ( ( left , Relationship :: Dependency , right ) ) ,
259
259
RelationshipType :: DescendantOf => Ok ( ( right, Relationship :: AncestorOf , left) ) ,
260
- RelationshipType :: DescribedBy => Ok ( ( left , Relationship :: DescribedBy , right ) ) ,
261
- RelationshipType :: Describes => Ok ( ( right , Relationship :: DescribedBy , left ) ) ,
262
- RelationshipType :: DevDependencyOf => Ok ( ( left , Relationship :: DevDependencyOf , right ) ) ,
263
- RelationshipType :: DevToolOf => Ok ( ( left , Relationship :: DevToolOf , right ) ) ,
264
- RelationshipType :: ExampleOf => Ok ( ( left , Relationship :: ExampleOf , right ) ) ,
265
- RelationshipType :: GeneratedFrom => Ok ( ( left , Relationship :: GeneratedFrom , right ) ) ,
266
- RelationshipType :: Generates => Ok ( ( right , Relationship :: GeneratedFrom , left ) ) ,
260
+ RelationshipType :: DescribedBy => Ok ( ( right , Relationship :: Describes , left ) ) ,
261
+ RelationshipType :: Describes => Ok ( ( left , Relationship :: Describes , right ) ) ,
262
+ RelationshipType :: DevDependencyOf => Ok ( ( right , Relationship :: DevDependency , left ) ) ,
263
+ RelationshipType :: DevToolOf => Ok ( ( right , Relationship :: DevTool , left ) ) ,
264
+ RelationshipType :: ExampleOf => Ok ( ( right , Relationship :: Example , left ) ) ,
265
+ RelationshipType :: GeneratedFrom => Ok ( ( right , Relationship :: Generates , left ) ) ,
266
+ RelationshipType :: Generates => Ok ( ( left , Relationship :: Generates , right ) ) ,
267
267
RelationshipType :: OptionalDependencyOf => {
268
- Ok ( ( left , Relationship :: OptionalDependencyOf , right ) )
268
+ Ok ( ( right , Relationship :: OptionalDependency , left ) )
269
269
}
270
- RelationshipType :: PackageOf => Ok ( ( right, Relationship :: PackageOf , left) ) ,
270
+ RelationshipType :: PackageOf => Ok ( ( right, Relationship :: Packages , left) ) ,
271
271
RelationshipType :: ProvidedDependencyOf => {
272
- Ok ( ( left , Relationship :: ProvidedDependencyOf , right ) )
272
+ Ok ( ( right , Relationship :: ProvidedDependency , left ) )
273
273
}
274
274
RelationshipType :: RuntimeDependencyOf => {
275
- Ok ( ( left , Relationship :: RuntimeDependencyOf , right ) )
275
+ Ok ( ( right , Relationship :: RuntimeDependency , left ) )
276
276
}
277
- RelationshipType :: TestDependencyOf => Ok ( ( left , Relationship :: TestDependencyOf , right ) ) ,
278
- RelationshipType :: VariantOf => Ok ( ( left , Relationship :: VariantOf , right ) ) ,
277
+ RelationshipType :: TestDependencyOf => Ok ( ( right , Relationship :: TestDependency , left ) ) ,
278
+ RelationshipType :: VariantOf => Ok ( ( right , Relationship :: Variant , left ) ) ,
279
279
_ => Err ( ( ) ) ,
280
280
}
281
281
. map ( |( left, rel, right) | Self ( left, rel, right) )
0 commit comments