Skip to content

Commit

Permalink
fix: lint error for single variant match
Browse files Browse the repository at this point in the history
  • Loading branch information
duckontheweb committed Jun 26, 2021
1 parent 1688b4a commit bdbdce1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rustac-validate/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ pub(crate) fn get_extension_path(extension_id: &str, stac_type: &STACObject) ->
match extension_id {
"eo" => match stac_type {
STACObject::Item(_) => Some("extensions/eo/json-schema/schema.json".into()),
_ => None,
STACObject::Catalog(_) | STACObject::Collection(_) => None,
},
"projection" => match stac_type {
STACObject::Item(_) => Some("extensions/projection/json-schema/schema.json".into()),
_ => None,
STACObject::Catalog(_) | STACObject::Collection(_) => None,
},
"scientific" => match stac_type {
STACObject::Item(_) | STACObject::Collection(_) => {
Some("extensions/scientific/json-schema/schema.json".into())
}
_ => None,
STACObject::Catalog(_) => None,
},
"view" => match stac_type {
STACObject::Item(_) => Some("extensions/view/json-schema/schema.json".into()),
_ => None,
STACObject::Catalog(_) | STACObject::Collection(_) => None,
},
_ => None,
}
Expand Down

0 comments on commit bdbdce1

Please sign in to comment.