Skip to content

Commit

Permalink
chore: dump MSRV to 1.71.1 by removing .inspect_err()
Browse files Browse the repository at this point in the history
.inspect_err() was stabilized in 1.76.0. If we remove it, we dump our
MSRV to 1.71.1.
  • Loading branch information
rasendubi committed May 15, 2024
1 parent 2cc10b7 commit f754132
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,19 @@ impl<'a> Client<'a> {
return Ok(None);
};

let evaluation = configuration
.eval_flag(flag_key, subject_key, subject_attributes, &Md5Sharder)
.inspect_err(|err| {
log::warn!(target: "eppo",
flag_key,
subject_key,
subject_attributes:serde;
"error occurred while evaluating a flag: {:?}", err,
);
})?;
let evaluation =
match configuration.eval_flag(flag_key, subject_key, subject_attributes, &Md5Sharder) {
Ok(result) => result,
Err(err) => {
log::warn!(target: "eppo",
flag_key,
subject_key,
subject_attributes:serde;
"error occurred while evaluating a flag: {:?}", err,
);
return Err(err);
}
};

log::trace!(target: "eppo",
flag_key,
Expand Down

0 comments on commit f754132

Please sign in to comment.