Skip to content

Commit

Permalink
Update workflow.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgar2017 authored Apr 22, 2024
1 parent 8fc7c39 commit 46384f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler_tester/src/workflow.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//!
//! Compiler tester workflows
//! The compiler tester workflows.
//!
use std::str::FromStr;

///
/// Describes sets of actions that compiler tester is able to perform.
///
Expand All @@ -12,13 +14,13 @@ pub enum Workflow {
/// Build and execute tests.
BuildAndRun,
}
use std::str::FromStr;

// any error type implementing Display is acceptable.
type ParseError = &'static str;

impl FromStr for Workflow {
type Err = ParseError;

fn from_str(day: &str) -> Result<Self, Self::Err> {
match day {
"build" => Ok(Workflow::BuildOnly),
Expand Down

0 comments on commit 46384f0

Please sign in to comment.