Skip to content

Commit

Permalink
Fix typo: Add missing closing bracket (#4393)
Browse files Browse the repository at this point in the history
* Fix typo

* Update snapshot
  • Loading branch information
konstin authored Aug 1, 2024
1 parent 6caefd1 commit 7c1ae15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyo3-macros-backend/src/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ fn pyclass_richcmp_simple_enum(
quote! {
#[deprecated(
since = "0.22.0",
note = "Implicit equality for simple enums is deprecated. Use `#[pyclass(eq, eq_int)` to keep the current behavior."
note = "Implicit equality for simple enums is deprecated. Use `#[pyclass(eq, eq_int)]` to keep the current behavior."
)]
const DEPRECATION: () = ();
const _: () = DEPRECATION;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/deprecations.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ error: use of deprecated constant `__pyfunction_pyfunction_option_4::SIGNATURE`:
21 | fn pyfunction_option_4(
| ^^^^^^^^^^^^^^^^^^^

error: use of deprecated constant `SimpleEnumWithoutEq::__pyo3__generated____richcmp__::DEPRECATION`: Implicit equality for simple enums is deprecated. Use `#[pyclass(eq, eq_int)` to keep the current behavior.
error: use of deprecated constant `SimpleEnumWithoutEq::__pyo3__generated____richcmp__::DEPRECATION`: Implicit equality for simple enums is deprecated. Use `#[pyclass(eq, eq_int)]` to keep the current behavior.
--> tests/ui/deprecations.rs:28:1
|
28 | #[pyclass]
Expand Down

0 comments on commit 7c1ae15

Please sign in to comment.