From 6498b2eecb21ad87069be8f501f35374745106d9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 5 May 2022 19:28:57 +0300 Subject: refactor: drop the subplot::Result type alias Replace subplot::Result with Result. I find this now to be clearer, as I don't need to remind myself which Result is being used where. This should not be a breaking change. Sponsored-by: author --- src/steps.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/steps.rs') diff --git a/src/steps.rs b/src/steps.rs index c8c1bf6..ccbc588 100644 --- a/src/steps.rs +++ b/src/steps.rs @@ -1,4 +1,4 @@ -use crate::{Result, SubplotError}; +use crate::SubplotError; use serde::{Deserialize, Serialize}; use std::fmt; @@ -47,7 +47,10 @@ impl ScenarioStep { /// /// If the step uses the "and" or "but" keyword, use the default /// step kind instead. - pub fn new_from_str(text: &str, default: Option) -> Result { + pub fn new_from_str( + text: &str, + default: Option, + ) -> Result { let mut words = text.split_whitespace(); let keyword = match words.next() { -- cgit v1.2.1