From 33f97feafbac2a3dc85f210d13a93af42f905f3f Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Fri, 16 Dec 2016 00:07:02 -0800 Subject: [PATCH] Shorten PrimVal::Undefined to PrimVal::Undef. --- src/value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/value.rs b/src/value.rs index ae42cb9bfd3..2a3c22353f7 100644 --- a/src/value.rs +++ b/src/value.rs @@ -59,7 +59,7 @@ pub enum PrimVal { /// An undefined `PrimVal`, for representing values that aren't safe to examine, but are safe /// to copy around, just like undefined bytes in an `Allocation`. - Undefined, + Undef, } #[derive(Clone, Copy, Debug, PartialEq)] @@ -123,7 +123,7 @@ impl PrimVal { match *self { PrimVal::Bytes(b) => b, PrimVal::Ptr(p) => p.offset, - PrimVal::Undefined => panic!(".bits()() on PrimVal::Undefined"), + PrimVal::Undef => panic!(".bits()() on PrimVal::Undef"), } }