Skip to content

Commit a3fe910

Browse files
not needed
1 parent 1ef5516 commit a3fe910

File tree

1 file changed

+2
-5
lines changed
  • crates/pgt_workspace_macros/src

1 file changed

+2
-5
lines changed

crates/pgt_workspace_macros/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ impl syn::parse::Parse for IgnoredPath {
2020
}
2121

2222
let _: syn::Token!(=) = input.parse()?;
23-
let path: syn::Expr = match input.parse() {
24-
Ok(it) => it,
25-
Err(_) => return Err(syn::Error::new_spanned(arg_name, "This is wrong brotha")),
26-
};
23+
let path: syn::Expr = input.parse()?;
2724

2825
Ok(Self { path })
2926
}
@@ -34,7 +31,7 @@ impl syn::parse::Parse for IgnoredPath {
3431
/// is ignored by the user's settings.
3532
///
3633
/// This will work for any function where &self is in scope and that returns `Result<T, E>`, `Result<(), E>`, or `T`, where `T: Default`.
37-
/// `path` needs to point at a `&PgTPath``.
34+
/// `path` needs to point at a `&PgTPath`.
3835
///
3936
/// ### Usage
4037
///

0 commit comments

Comments
 (0)