diff options
author | Andre Bogus <bogusandre@gmail.com> | 2016-05-14 20:12:19 +0200 |
---|---|---|
committer | Andre Bogus <bogusandre@gmail.com> | 2016-05-14 20:12:19 +0200 |
commit | cd224eaeff9328568cdc4d0ef2a9cf153f760ec8 (patch) | |
tree | 0231cdaea40892466503f1a6aa5714c254ec3b2f /libimagentrytag | |
parent | 12472ab397801119fb679cac53f2ad671301e25a (diff) |
roll back closure, remove unneeded slice & imports
Diffstat (limited to 'libimagentrytag')
-rw-r--r-- | libimagentrytag/src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libimagentrytag/src/util.rs b/libimagentrytag/src/util.rs index 42765193..16b76a1d 100644 --- a/libimagentrytag/src/util.rs +++ b/libimagentrytag/src/util.rs @@ -1,5 +1,5 @@ use regex::Regex; pub fn is_tag(s: &str) -> bool { - Regex::new("^[a-zA-Z]([a-zA-Z0-9_-]*)$").unwrap().captures(&s[..]).is_some() + Regex::new("^[a-zA-Z]([a-zA-Z0-9_-]*)$").unwrap().captures(s).is_some() } |