Skip to content

Commit c74e762

Browse files
committed
make clippy happy
1 parent 9649e84 commit c74e762

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

git2-hooks/src/hookspath.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ impl HookPaths {
152152
if hook
153153
.as_os_str()
154154
.encode_wide()
155-
.into_iter()
156-
.find(|x| *x == (b'\'' as u16))
157-
.is_some()
155+
.any(|x| x == u16::from(b'\''))
158156
{
159157
// TODO: escape single quotes instead of failing
160158
return Err(HooksError::PathToString);

0 commit comments

Comments
 (0)