commit f39768b5f7fbf44ae698329bf135e90731981e7e
parent 799dbfacff51c7d0dde225ce2a174f6846115112
Author: Sebastian <sebastian@sebsite.pw>
Date: Mon, 28 Mar 2022 21:06:38 -0400
fnmatch: remove unnecessary cast
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fnmatch/fnmatch.ha b/fnmatch/fnmatch.ha
@@ -369,7 +369,7 @@ fn pat_next(pat: *strings::iterator, fl: flags) (token | errors::invalid) = {
case '\\' =>
// TODO: remove ? (harec bug workaround)
return if (fl & flags::NOESCAPE == 0) advance_or_err(pat)?
- else '\\': token; // TODO: remove cast (harec bug workaround)
+ else '\\';
case =>
return r;
};