Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanlakhani committed Nov 7, 2023
1 parent 263a871 commit 0ea35d0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
cargo-cross
cargo-expand
cargo-nextest
cargo-outdated
cargo-sort
cargo-spellcheck
cargo-unused-features
Expand Down
2 changes: 1 addition & 1 deletion homestar-core/src/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl From<Ipld> for Unit {
// Default implementation.
impl input::Parse<Unit> for Input<Unit> {
fn parse(&self) -> Result<Parsed<Unit>, InputParseError<Unit>> {
let args = match Ipld::try_from(self.to_owned())? {
let args = match Ipld::from(self.to_owned()) {
Ipld::List(v) => Ipld::List(v).try_into()?,
ipld => Args::new(vec![ipld.try_into()?]),
};
Expand Down
6 changes: 3 additions & 3 deletions homestar-core/src/workflow/instruction_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ where
if let Ipld::List(v) = ipld {
match &v[..] {
[Ipld::String(result), res] if result == OK => {
Ok(InstructionResult::Ok(res.to_owned().try_into()?))
Ok(InstructionResult::Ok(res.to_owned().into()))
}
[Ipld::String(result), res] if result == ERR => {
Ok(InstructionResult::Error(res.to_owned().try_into()?))
Ok(InstructionResult::Error(res.to_owned().into()))
}
[Ipld::String(result), res] if result == JUST => {
Ok(InstructionResult::Just(res.to_owned().try_into()?))
Ok(InstructionResult::Just(res.to_owned().into()))
}
other_ipld => Err(workflow::Error::unexpected_ipld(
other_ipld.to_owned().into(),
Expand Down

0 comments on commit 0ea35d0

Please sign in to comment.