From: Skgland Date: Fri, 26 Feb 2021 16:19:38 +0000 (+0100) Subject: remove #[allow(dead_code)] X-Git-Tag: v0.9.0~150^2~7^2~2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=a638d42d92efbfa481f167b9a86b7c7c2f2ccda0;p=scryer-prolog.git 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 --- diff --git a/src/indexing.rs b/src/indexing.rs index 286f618a..0f368356 100644 --- a/src/indexing.rs +++ b/src/indexing.rs @@ -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, } }