Skip to content

Commit 1401d86

Browse files
committed
Move UrlPatternInput
1 parent dedbd1b commit 1401d86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ use pyo3::{
88
};
99
use std::collections::HashMap;
1010

11+
#[derive(FromPyObject)]
12+
enum UrlPatternInput<'py> {
13+
String(String),
14+
Init(Bound<'py, PyDict>),
15+
}
16+
1117
#[pyclass(name = "URLPattern")]
1218
struct UrlPattern(::urlpattern::UrlPattern);
1319

@@ -394,12 +400,6 @@ impl UrlPattern {
394400
}
395401
}
396402

397-
#[derive(FromPyObject)]
398-
enum UrlPatternInput<'py> {
399-
String(String),
400-
Init(Bound<'py, PyDict>),
401-
}
402-
403403
struct UrlPatternResult<'py> {
404404
inputs: Vec<UrlPatternInput<'py>>,
405405
protocol: UrlPatternComponentResult,

0 commit comments

Comments
 (0)