File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,8 @@ pub struct Index {
20
20
#[ derive( Debug , serde:: Deserialize , Clone ) ]
21
21
#[ serde( rename_all = "kebab-case" ) ]
22
22
struct IndexConfig {
23
- dl : String ,
24
23
#[ serde( default ) ]
25
24
api : Option < Url > ,
26
- #[ serde( default ) ]
27
- allowed_registries : Vec < String > ,
28
25
}
29
26
30
27
/// Inspects the given repository to find the config as specified in [RFC 2141][], assumes that the
Original file line number Diff line number Diff line change @@ -205,18 +205,21 @@ struct GraphResponse<T> {
205
205
}
206
206
207
207
#[ derive( Debug , Deserialize ) ]
208
+ #[ allow( dead_code) ] // used by anyhow for error reporting; apparently the compiler isn't smart enough to tell
208
209
struct GraphError {
209
210
message : String ,
210
211
locations : Vec < GraphErrorLocation > ,
211
212
}
212
213
213
214
#[ derive( Debug , Deserialize ) ]
215
+ #[ allow( dead_code) ]
214
216
struct GraphErrorLocation {
215
217
line : u32 ,
216
218
column : u32 ,
217
219
}
218
220
219
221
#[ derive( Debug , Deserialize ) ]
222
+ #[ allow( dead_code) ]
220
223
struct GraphRateLimit {
221
224
remaining : u32 ,
222
225
}
You can’t perform that action at this time.
0 commit comments