Skip to content

Commit

Permalink
Keeping result a result
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjeline committed Oct 6, 2023
1 parent 56bb8a0 commit e07dd04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cedar-policy-cli/tests/integration_tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ struct JsonRequest {
errors: Vec<String>,
}

fn value_to_euid_string(v: serde_json::Value) -> Option<String> {
EntityUid::from_json(v).ok().map(|euid| euid.to_string())
fn value_to_euid_string(v: serde_json::Value) -> Result<String, impl std::error::Error> {
EntityUid::from_json(v).map(|euid| euid.to_string())
}

/// For relative paths, return the absolute path, assuming that the path
Expand Down

0 comments on commit e07dd04

Please sign in to comment.