mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-26 06:57:43 +02:00
update syn to 2 in web codegen (#3081)
This commit is contained in:
@ -252,7 +252,7 @@ impl ResourceDef {
|
||||
/// Multi-pattern resources can be constructed by providing a slice (or vec) of patterns.
|
||||
///
|
||||
/// # Panics
|
||||
/// Panics if path pattern is malformed.
|
||||
/// Panics if any path patterns are malformed.
|
||||
///
|
||||
/// # Examples
|
||||
/// ```
|
||||
@ -838,6 +838,7 @@ impl ResourceDef {
|
||||
|
||||
fn construct<T: IntoPatterns>(paths: T, is_prefix: bool) -> Self {
|
||||
let patterns = paths.patterns();
|
||||
|
||||
let (pat_type, segments) = match &patterns {
|
||||
Patterns::Single(pattern) => ResourceDef::parse(pattern, is_prefix, false),
|
||||
|
||||
|
Reference in New Issue
Block a user