diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-03-28 17:45:01 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-03-28 17:45:01 +0200 |
commit | 0d6744157663ba55856ed2f12454561918561c7f (patch) | |
tree | 6a8838fde7d7584a04b3d8b7ed38ac97260779a1 /src/steps.rs | |
parent | 1736477e2e2ed5b3c63633087f22280eb73e1506 (diff) | |
download | subplot-0d6744157663ba55856ed2f12454561918561c7f.tar.gz |
Change: use thiserror to simplify errors.rs
Diffstat (limited to 'src/steps.rs')
-rw-r--r-- | src/steps.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/steps.rs b/src/steps.rs index ccf7694..3846bc3 100644 --- a/src/steps.rs +++ b/src/steps.rs @@ -1,4 +1,4 @@ -use crate::{Error, Result}; +use crate::{OurError, Result}; 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(Error::UnknownStepKind), + _ => return Err(OurError::UnknownStepKind), }; let mut joined = String::new(); |