diff options
| author | Lukas Markeffsky <@> | 2023-01-14 11:48:43 +0100 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2023-01-14 11:58:41 +0100 |
| commit | 76e216f29b44322b52c49d8c56f20763beb271b5 (patch) | |
| tree | 057e5b41a888ae84795f858a3a9d8d159e32ee1c /compiler/rustc_span/src | |
| parent | c0b87359599629d69a7b37318088dac3a5d67c9c (diff) | |
| download | rust-76e216f29b44322b52c49d8c56f20763beb271b5.tar.gz rust-76e216f29b44322b52c49d8c56f20763beb271b5.zip | |
Use associated items of `char` instead of freestanding items in `core::char`
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/lev_distance/tests.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/lev_distance/tests.rs b/compiler/rustc_span/src/lev_distance/tests.rs index b17d6588c9f..ed03b22c61f 100644 --- a/compiler/rustc_span/src/lev_distance/tests.rs +++ b/compiler/rustc_span/src/lev_distance/tests.rs @@ -2,9 +2,8 @@ use super::*; #[test] fn test_lev_distance() { - use std::char::{from_u32, MAX}; // Test bytelength agnosticity - for c in (0..MAX as u32).filter_map(from_u32).map(|i| i.to_string()) { + for c in (0..char::MAX as u32).filter_map(char::from_u32).map(|i| i.to_string()) { assert_eq!(lev_distance(&c[..], &c[..], usize::MAX), Some(0)); } |
