remove #[allow(dead_code)]
only commenting out the unused variant as `OptArgIndexKeyType` as it appears to mirror `OptArgIndexKey` and there List is not unused so this appears to be not yet used rather than obsolete
This commit is contained in:
@@ -28,8 +28,7 @@ pub(crate) enum IndexingCodePtr {
|
|||||||
enum OptArgIndexKeyType {
|
enum OptArgIndexKeyType {
|
||||||
Structure,
|
Structure,
|
||||||
Constant,
|
Constant,
|
||||||
#[allow(dead_code)]
|
// List,
|
||||||
List,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl OptArgIndexKey {
|
impl OptArgIndexKey {
|
||||||
@@ -38,7 +37,8 @@ impl OptArgIndexKey {
|
|||||||
match (self, key_type) {
|
match (self, key_type) {
|
||||||
(OptArgIndexKey::Constant(..), OptArgIndexKeyType::Constant)
|
(OptArgIndexKey::Constant(..), OptArgIndexKeyType::Constant)
|
||||||
| (OptArgIndexKey::Structure(..), OptArgIndexKeyType::Structure)
|
| (OptArgIndexKey::Structure(..), OptArgIndexKeyType::Structure)
|
||||||
| (OptArgIndexKey::List(..), OptArgIndexKeyType::List) => true,
|
// | (OptArgIndexKey::List(..), OptArgIndexKeyType::List)
|
||||||
|
=> true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user