Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/tamer
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-06 09:08:38 -0400
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-06 09:56:13 -0400
commitb87048094460681c11d5202f89df607fe043acab (patch)
tree039afbb76d199e5f6449880dc544233691d1ea6c /tamer
parentda5057058d797a5d4b9fc2ff3fade68e32bf0aef (diff)
downloadtame-b87048094460681c11d5202f89df607fe043acab.tar.gz
tame-b87048094460681c11d5202f89df607fe043acab.tar.bz2
tame-b87048094460681c11d5202f89df607fe043acab.zip
[DEV-7086] TAMER: ir::asg::TransitionError::BadFragmentDest tuple=>struct
Consistency.
Diffstat (limited to 'tamer')
-rw-r--r--tamer/src/ir/asg/object.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tamer/src/ir/asg/object.rs b/tamer/src/ir/asg/object.rs
index 6a21e8c..628521e 100644
--- a/tamer/src/ir/asg/object.rs
+++ b/tamer/src/ir/asg/object.rs
@@ -425,7 +425,7 @@ impl<'i> IdentObjectState<'i, IdentObject<'i>> for IdentObject<'i> {
self,
);
- Err((self, TransitionError::BadFragmentDest(msg)))
+ Err((self, TransitionError::BadFragmentDest { name: msg }))
}
}
}
@@ -464,7 +464,7 @@ pub enum TransitionError {
/// receive a fragment.
///
/// See [`IdentObjectState::set_fragment`].
- BadFragmentDest(String),
+ BadFragmentDest { name: String },
}
impl std::fmt::Display for TransitionError {
@@ -502,7 +502,7 @@ impl std::fmt::Display for TransitionError {
name, existing, given,
),
- Self::BadFragmentDest(msg) => {
+ Self::BadFragmentDest{name: msg} => {
write!(fmt, "bad fragment destination: {}", msg)
}
}
@@ -1029,7 +1029,7 @@ mod test {
.expect_err("Expected failure");
match err {
- (orig, TransitionError::BadFragmentDest(str))
+ (orig, TransitionError::BadFragmentDest { name: str })
if str.contains("badsym") =>
{
assert_eq!(ident_with_frag, orig);