@@ -171,7 +171,6 @@ pub enum Formatter {
171
171
None ,
172
172
/// Use `rustfmt` to format the bindings.
173
173
Rustfmt ,
174
- #[ cfg( feature = "prettyplease" ) ]
175
174
/// Use `prettyplease` to format the bindings.
176
175
Prettyplease ,
177
176
}
@@ -189,7 +188,6 @@ impl FromStr for Formatter {
189
188
match s {
190
189
"none" => Ok ( Self :: None ) ,
191
190
"rustfmt" => Ok ( Self :: Rustfmt ) ,
192
- #[ cfg( feature = "prettyplease" ) ]
193
191
"prettyplease" => Ok ( Self :: Prettyplease ) ,
194
192
_ => Err ( format ! ( "`{}` is not a valid formatter" , s) ) ,
195
193
}
@@ -201,7 +199,6 @@ impl std::fmt::Display for Formatter {
201
199
let s = match self {
202
200
Self :: None => "none" ,
203
201
Self :: Rustfmt => "rustfmt" ,
204
- #[ cfg( feature = "prettyplease" ) ]
205
202
Self :: Prettyplease => "prettyplease" ,
206
203
} ;
207
204
@@ -966,8 +963,6 @@ impl Bindings {
966
963
967
964
match self . options . formatter {
968
965
Formatter :: None => return Ok ( tokens. to_string ( ) ) ,
969
-
970
- #[ cfg( feature = "prettyplease" ) ]
971
966
Formatter :: Prettyplease => {
972
967
return Ok ( prettyplease:: unparse ( & syn:: parse_quote!( #tokens) ) ) ;
973
968
}
0 commit comments