We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dedbd1b commit 1401d86Copy full SHA for 1401d86
1 file changed
src/lib.rs
@@ -8,6 +8,12 @@ use pyo3::{
8
};
9
use std::collections::HashMap;
10
11
+#[derive(FromPyObject)]
12
+enum UrlPatternInput<'py> {
13
+ String(String),
14
+ Init(Bound<'py, PyDict>),
15
+}
16
+
17
#[pyclass(name = "URLPattern")]
18
struct UrlPattern(::urlpattern::UrlPattern);
19
@@ -394,12 +400,6 @@ impl UrlPattern {
394
400
}
395
401
396
402
397
-#[derive(FromPyObject)]
398
-enum UrlPatternInput<'py> {
399
- String(String),
- Init(Bound<'py, PyDict>),
-}
-
403
struct UrlPatternResult<'py> {
404
inputs: Vec<UrlPatternInput<'py>>,
405
protocol: UrlPatternComponentResult,
0 commit comments