We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 167a4dd commit b7179d6Copy full SHA for b7179d6
src/lib.rs
@@ -1,4 +1,5 @@
1
#![deny(rust_2018_idioms)]
2
+#![feature(exact_size_is_empty)]
3
4
#[macro_use]
5
extern crate derive_new;
src/types.rs
@@ -318,7 +318,7 @@ where
318
};
319
320
let list_lo = context.snippet_provider.span_after(span, "(");
321
- let (list_str, tactic) = if inputs.len() == 0 {
+ let (list_str, tactic) = if inputs.is_empty() {
322
let tactic = get_tactics(&Vec::<ListItem>::new(), &output, &shape);
323
let list_hi = context.snippet_provider.span_before_last(span, ")");
324
let comment = context
0 commit comments