Skip to content

Commit 69db43f

Browse files
committed
Update lib.rs
1 parent 1ff4df6 commit 69db43f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/rustapi-macros/src

crates/rustapi-macros/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ fn validate_path_syntax(path: &str, span: proc_macro2::Span) -> Result<(), syn::
392392
// Check for invalid characters in path (outside of parameters)
393393
_ if brace_depth == 0
394394
// Allow alphanumeric, -, _, ., /, and common URL characters
395-
&& !ch.is_alphanumeric() && !"-_./*".contains(ch) => {
395+
&& !ch.is_alphanumeric() && !"-_./*".contains(ch) =>
396+
{
396397
return Err(syn::Error::new(
397398
span,
398399
format!(

0 commit comments

Comments
 (0)