@@ -45,38 +45,38 @@ pub enum ParseError {
45
45
error : strum:: ParseError ,
46
46
} ,
47
47
48
- /// An unsupported value for the "project " field was provided.
49
- #[ error( "invalid project '{project }' in input '{input}'" ) ]
50
- Project {
48
+ /// An unsupported value for the "package " field was provided.
49
+ #[ error( "invalid package '{package }' in input '{input}'" ) ]
50
+ Package {
51
51
/// The input originally provided to the parser.
52
52
input : String ,
53
53
54
- /// The project that was attempted to parse.
55
- project : String ,
54
+ /// The package that was attempted to parse.
55
+ package : String ,
56
56
57
57
/// The error returned by the parser.
58
58
#[ source]
59
- error : ProjectParseError ,
59
+ error : PackageParseError ,
60
60
} ,
61
61
}
62
62
63
- /// Errors encountered when parsing the project field
63
+ /// Errors encountered when parsing the package field
64
64
/// when parsing a [`Locator`](crate::Locator) from a string.
65
65
#[ derive( Error , Clone , PartialEq , Eq , Debug ) ]
66
66
#[ non_exhaustive]
67
- pub enum ProjectParseError {
68
- /// An unsupported value for the "project " field was provided.
69
- #[ error( "project did not match required syntax: {project }" ) ]
70
- Project {
71
- /// The project input.
72
- project : String ,
67
+ pub enum PackageParseError {
68
+ /// An unsupported value for the "package " field was provided.
69
+ #[ error( "package did not match required syntax: {package }" ) ]
70
+ Package {
71
+ /// The package input.
72
+ package : String ,
73
73
} ,
74
74
75
75
/// The "named" field was missing from the input.
76
- #[ error( "field '{field}' missing from input: {project }" ) ]
76
+ #[ error( "field '{field}' missing from input: {package }" ) ]
77
77
Field {
78
78
/// The input originally provided to the parser.
79
- project : String ,
79
+ package : String ,
80
80
81
81
/// The field that was missing.
82
82
field : String ,
0 commit comments