mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Resolve a redundant_closure lint warning
This commit is contained in:
parent
6dd73398a3
commit
b98fd0e8bd
@ -38,7 +38,7 @@ fn test_lev_distance() {
|
||||
use std::char::{from_u32, MAX};
|
||||
// Test bytelength agnosticity
|
||||
for c in (0u32..MAX as u32)
|
||||
.filter_map(|i| from_u32(i))
|
||||
.filter_map(from_u32)
|
||||
.map(|i| i.to_string())
|
||||
{
|
||||
assert_eq!(lev_distance(&c, &c), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user