Skip to content

Commit cb12da1

Browse files
committed
remove unused braces on windows
1 parent 43ee486 commit cb12da1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/sys/windows/handle.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ impl RawHandle {
115115
) -> io::Result<Option<usize>> {
116116
let len = cmp::min(buf.len(), <c::DWORD>::max_value() as usize) as c::DWORD;
117117
let mut amt = 0;
118-
let res =
119-
cvt({ c::ReadFile(self.0, buf.as_ptr() as c::LPVOID, len, &mut amt, overlapped) });
118+
let res = cvt(c::ReadFile(self.0, buf.as_ptr() as c::LPVOID, len, &mut amt, overlapped));
120119
match res {
121120
Ok(_) => Ok(Some(amt as usize)),
122121
Err(e) => {

0 commit comments

Comments
 (0)