Skip to content

Commit fadeecc

Browse files
authored
ci: updates for Rust 1.76 (#1191)
1 parent 44621f1 commit fadeecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/errors/value_exception.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl PydanticCustomError {
9898

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

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

0 commit comments

Comments
 (0)