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.lock | |
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.lock')
-rw-r--r-- | tamer/Cargo.lock | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tamer/Cargo.lock b/tamer/Cargo.lock index 4b705f8..0b53fa6 100644 --- a/tamer/Cargo.lock +++ b/tamer/Cargo.lock @@ -243,6 +243,7 @@ dependencies = [ "fixedbitset 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", "fxhash 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "getopts 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "petgraph 0.4.13 (registry+https://github.com/rust-lang/crates.io-index)", "predicates 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "quick-xml 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", |