diff options
author | Mike Gerwitz <mike.gerwitz@ryansg.com> | 2020-03-11 15:20:49 -0400 |
---|---|---|
committer | Mike Gerwitz <mike.gerwitz@ryansg.com> | 2020-03-19 15:42:06 -0400 |
commit | 400d5b25a1a0912790f65ceb0fff9f92059e61b9 (patch) | |
tree | 9740f9a696a3d2aec51ec39a63fe787d07cc40aa /tamer/Cargo.toml | |
parent | bc976b43cddc639e0ff1adfd61e93e68e894964e (diff) | |
download | tame-400d5b25a1a0912790f65ceb0fff9f92059e61b9.tar.gz tame-400d5b25a1a0912790f65ceb0fff9f92059e61b9.tar.bz2 tame-400d5b25a1a0912790f65ceb0fff9f92059e61b9.zip |
ir::asg::Object::Empty: Remove variant
This variant is unnecessary, as it was used only by the indexer to represent
the absence of a node, for which was can simply use `None` in the containing
`Option`.
* tamer/Cargo.toml: Add `lazy_static`.
* tamer/Cargo.lock: Update.
* tamer/src/ir/asg/base.rs (with_capacity): Use `None` in place of
`Some(Object::Empty)`.
* tamer/src/ir/asg/object.rs: Adjust state machine graphic.
(Empty): Remove variant.
(Missing): Remove reference to variance.
* tamer/src/lib.rs: Import `lazy_static` for test builds.
* tamer/obj/xmle/writer/writer.rs (Section::iter): Remove `Object::Empty`
from documentation.
(test::): Remove references to `Object::Missing`. `lazy_static!` used
here.
* tamer/obj/xmle/writer/xmle.rs (test::write_section_catch_missing): Replace
reference to `Object::Missing`.
Diffstat (limited to 'tamer/Cargo.toml')
-rw-r--r-- | tamer/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tamer/Cargo.toml b/tamer/Cargo.toml index 7d27fd7..69cc200 100644 --- a/tamer/Cargo.toml +++ b/tamer/Cargo.toml @@ -35,4 +35,5 @@ petgraph = ">= 0.4.13" quick-xml = ">= 0.17.0" getopts = "0.2" exitcode = "1.1.2" +lazy_static = ">= 1.4.0" |