summaryrefslogtreecommitdiffstats
path: root/src/process/help.rs
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2020-09-17 12:13:14 -0230
committerTim Oram <dev@mitmaro.ca>2020-09-17 21:39:31 -0230
commit2fb59a2eb3db8d817eefb3d0d08af5dfae35e847 (patch)
tree714570611a88da415d9ec5c19c0dc08efffac00f /src/process/help.rs
parentad9d1e6d9c1593c625458c814dde73825f677682 (diff)
Fix some reference/bindings to be more clear
Diffstat (limited to 'src/process/help.rs')
-rw-r--r--src/process/help.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process/help.rs b/src/process/help.rs
index 127d512..304ea4c 100644
--- a/src/process/help.rs
+++ b/src/process/help.rs
@@ -14,8 +14,8 @@ pub struct Help {
fn get_max_help_key_length(lines: &[(&str, &str)]) -> usize {
let mut max_length = 0;
- for (key, _) in lines {
- let len = UnicodeSegmentation::graphemes(*key, true).count();
+ for &(key, _) in lines {
+ let len = UnicodeSegmentation::graphemes(key, true).count();
if len > max_length {
max_length = len;
}