瀏覽代碼

Minor refactor

Kevin Lee 6 月之前
父節點
當前提交
ff93f97c25
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -103,7 +103,7 @@ fn parse_range(arg: &str) -> Result<RangeInclusive<usize>, Error> {
                 (None, None) if range => Ok(0..=PEN_MAX),
                 (None, None) => Err(Error::new(ErrorKind::InvalidValue)),
                 (Some(d1), None) if !range => Ok(d1..=d1),
-                (Some(d1), None) => Ok(ret(d1, PEN_MAX, true)),
+                (Some(d1), None) => Ok(d1..=PEN_MAX),
                 (None, Some(d2)) if !range => Ok(d2..=d2),
                 (None, Some(d2)) => Ok(ret(0, d2, inclusive)),
                 (Some(d1), Some(d2)) if d1 > d2 => Err(Error::new(ErrorKind::InvalidValue)),