summaryrefslogtreecommitdiff
path: root/src/steps.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-03-30 09:44:38 +0300
committerLars Wirzenius <liw@liw.fi>2020-03-30 09:45:05 +0300
commit487c4a110a33d55c88b49e806a2160204d145a45 (patch)
treef3683f1442500ba34c607b2b046026dfc03b6e66 /src/steps.rs
parent57d8b593424d031a2dc22a400d9239b2c840bde2 (diff)
downloadsubplot-487c4a110a33d55c88b49e806a2160204d145a45.tar.gz
Refactor: rename OurError to SubplotError
On consideration, it's a clearer name. I've been trying to avoid using "subplot" in the identifiers, in case we ever have to rename the project again, but I think this is worth it.
Diffstat (limited to 'src/steps.rs')
-rw-r--r--src/steps.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/steps.rs b/src/steps.rs
index 3846bc3..b5d1d33 100644
--- a/src/steps.rs
+++ b/src/steps.rs
@@ -1,4 +1,4 @@
-use crate::{OurError, Result};
+use crate::{Result, SubplotError};
use serde::{Deserialize, Serialize};
use std::fmt;
@@ -49,7 +49,7 @@ impl ScenarioStep {
Some("then") => StepKind::Then,
Some("and") => default,
Some("but") => default,
- _ => return Err(OurError::UnknownStepKind),
+ _ => return Err(SubplotError::UnknownStepKind),
};
let mut joined = String::new();