Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ra-salsa/ra-salsa-macros/src/parenthesized.rs')
| -rw-r--r-- | crates/ra-salsa/ra-salsa-macros/src/parenthesized.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/crates/ra-salsa/ra-salsa-macros/src/parenthesized.rs b/crates/ra-salsa/ra-salsa-macros/src/parenthesized.rs deleted file mode 100644 index 5ecd1b8a05..0000000000 --- a/crates/ra-salsa/ra-salsa-macros/src/parenthesized.rs +++ /dev/null @@ -1,13 +0,0 @@ -//! Parenthesis helper -pub(crate) struct Parenthesized<T>(pub(crate) T); - -impl<T> syn::parse::Parse for Parenthesized<T> -where - T: syn::parse::Parse, -{ - fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> { - let content; - syn::parenthesized!(content in input); - content.parse::<T>().map(Parenthesized) - } -} |