mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: remove dependence on nightly
This commit is contained in:
parent
900cd41eb6
commit
59ad388cce
1 changed files with 2 additions and 4 deletions
|
@ -8,8 +8,6 @@
|
||||||
// that was distributed with this source code.
|
// that was distributed with this source code.
|
||||||
//
|
//
|
||||||
|
|
||||||
#![feature(slice_patterns)]
|
|
||||||
|
|
||||||
extern crate getopts;
|
extern crate getopts;
|
||||||
extern crate pretty_bytes;
|
extern crate pretty_bytes;
|
||||||
extern crate termsize;
|
extern crate termsize;
|
||||||
|
@ -71,8 +69,8 @@ lazy_static! {
|
||||||
let mut map = HashMap::new();
|
let mut map = HashMap::new();
|
||||||
for c in codes {
|
for c in codes {
|
||||||
let p: Vec<_> = c.split("=").collect();
|
let p: Vec<_> = c.split("=").collect();
|
||||||
if let [k, v] = p[..] {
|
if p.len() == 2 {
|
||||||
map.insert(k,v);
|
map.insert(p[0], p[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map
|
map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue