Skip to content

Commit b7179d6

Browse files
committed
use is_empty and feature(exact_size_is_empty)
1 parent 167a4dd commit b7179d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![deny(rust_2018_idioms)]
2+
#![feature(exact_size_is_empty)]
23

34
#[macro_use]
45
extern crate derive_new;

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ where
318318
};
319319

320320
let list_lo = context.snippet_provider.span_after(span, "(");
321-
let (list_str, tactic) = if inputs.len() == 0 {
321+
let (list_str, tactic) = if inputs.is_empty() {
322322
let tactic = get_tactics(&Vec::<ListItem>::new(), &output, &shape);
323323
let list_hi = context.snippet_provider.span_before_last(span, ")");
324324
let comment = context

0 commit comments

Comments
 (0)