]> Repositorios git - scryer-prolog.git/commitdiff
remove #[allow(dead_code)]
authorSkgland <[email protected]>
Fri, 26 Feb 2021 16:19:38 +0000 (17:19 +0100)
committerSkgland <[email protected]>
Sun, 28 Feb 2021 18:21:31 +0000 (19:21 +0100)
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

src/indexing.rs

index 286f618acc76de8e50e3c21082aeb2f6e928a17d..0f368356e56c60f5b75f2172385593ffe3e48750 100644 (file)
@@ -28,8 +28,7 @@ pub(crate) enum IndexingCodePtr {
 enum OptArgIndexKeyType {
     Structure,
     Constant,
-    #[allow(dead_code)]
-    List,
+    // List,
 }
 
 impl OptArgIndexKey {
@@ -38,7 +37,8 @@ impl OptArgIndexKey {
         match (self, key_type) {
             (OptArgIndexKey::Constant(..), OptArgIndexKeyType::Constant)
             | (OptArgIndexKey::Structure(..), OptArgIndexKeyType::Structure)
-            | (OptArgIndexKey::List(..), OptArgIndexKeyType::List) => true,
+            // | (OptArgIndexKey::List(..), OptArgIndexKeyType::List) 
+            => true,
             _ => false,
         }
     }