Skip to content

Commit 3425df9

Browse files
committed
Remove unused types in command_attr
1 parent e80c6ae commit 3425df9

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

command_attr/src/util.rs

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,7 @@ use syn::parse::{Error, Parse, ParseStream, Result as SynResult};
55
use syn::punctuated::Punctuated;
66
use syn::spanned::Spanned;
77
use syn::token::{Comma, Mut};
8-
use syn::{
9-
braced,
10-
bracketed,
11-
parenthesized,
12-
parse_quote,
13-
Attribute,
14-
Ident,
15-
Lifetime,
16-
Lit,
17-
Path,
18-
PathSegment,
19-
Type,
20-
};
8+
use syn::{parenthesized, parse_quote, Attribute, Ident, Lifetime, Lit, Path, PathSegment, Type};
219

2210
use crate::structures::CommandFun;
2311

@@ -91,30 +79,6 @@ macro_rules! propagate_err {
9179
}};
9280
}
9381

94-
#[derive(Debug)]
95-
pub struct Bracketed<T>(pub Punctuated<T, Comma>);
96-
97-
impl<T: Parse> Parse for Bracketed<T> {
98-
fn parse(input: ParseStream<'_>) -> SynResult<Self> {
99-
let content;
100-
bracketed!(content in input);
101-
102-
Ok(Bracketed(content.parse_terminated(T::parse)?))
103-
}
104-
}
105-
106-
#[derive(Debug)]
107-
pub struct Braced<T>(pub Punctuated<T, Comma>);
108-
109-
impl<T: Parse> Parse for Braced<T> {
110-
fn parse(input: ParseStream<'_>) -> SynResult<Self> {
111-
let content;
112-
braced!(content in input);
113-
114-
Ok(Braced(content.parse_terminated(T::parse)?))
115-
}
116-
}
117-
11882
#[derive(Debug)]
11983
pub struct Parenthesised<T>(pub Punctuated<T, Comma>);
12084

0 commit comments

Comments
 (0)