summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-09-22 19:54:27 -0600
committernachoparker <nacho@ownyourbits.com>2019-09-22 19:54:27 -0600
commitb0deeaf52def28cb389105254de3fa348a7d0d1c (patch)
tree3cd0bc9eba12d27faef3924e47cd7b1e6f424c91 /src
parentefb865eb74d69a9cab8b54f8d6d542f8753bcb3b (diff)
update deprecated method
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 554ae1b..ff2b661 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -509,7 +509,7 @@ fn color_from_path<'a>( path : &Path, color_dict : &'a HashMap<String, String> )
if let Some( ext_str ) = path.extension() {
for ( key , _ ) in color_dict {
if &key[..2] != "*." { continue }
- let k = key.trim_left_matches( "*." );
+ let k = key.trim_start_matches( "*." );
if ext_str == k {
return Some( &color_dict.get( key ).unwrap() );
}