Skip to content

Commit

Permalink
ci: updates for Rust 1.76
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Feb 12, 2024
1 parent 44621f1 commit 7a9e158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors/value_exception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl PydanticCustomError {

fn __repr__(&self, py: Python) -> PyResult<String> {
let msg = self.message(py)?;
match { self.context.as_ref() } {
match self.context.as_ref() {
Some(ctx) => Ok(format!("{msg} [type={}, context={}]", self.error_type, ctx.as_ref(py))),
None => Ok(format!("{msg} [type={}, context=None]", self.error_type)),
}
Expand Down Expand Up @@ -173,7 +173,7 @@ impl PydanticKnownError {

fn __repr__(&self, py: Python) -> PyResult<String> {
let msg = self.message(py)?;
match { self.context(py)?.as_ref() } {
match self.context(py)?.as_ref() {
Some(ctx) => Ok(format!(
"{msg} [type={}, context={}]",
self.error_type(),
Expand Down

0 comments on commit 7a9e158

Please sign in to comment.