File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,7 @@ pub fn last_os_error() -> ~str {
1164
1164
len as DWORD ,
1165
1165
ptr:: null ( ) ) ;
1166
1166
if res == 0 {
1167
- fail2 ! ( "[%? ] FormatMessage failure" , errno( ) ) ;
1167
+ fail2 ! ( "[{} ] FormatMessage failure" , errno( ) ) ;
1168
1168
}
1169
1169
}
1170
1170
@@ -1596,15 +1596,15 @@ impl Drop for MemoryMap {
1596
1596
if libc:: VirtualFree ( self . data as * mut c_void ,
1597
1597
self . len ,
1598
1598
libc:: MEM_RELEASE ) == FALSE {
1599
- error ! ( format! ( "VirtualFree failed: {}" , errno( ) ) ) ;
1599
+ error2 ! ( "VirtualFree failed: {}" , errno( ) ) ;
1600
1600
}
1601
1601
} ,
1602
1602
MapFile ( mapping) => {
1603
1603
if libc:: UnmapViewOfFile ( self . data as LPCVOID ) == FALSE {
1604
- error ! ( format! ( "UnmapViewOfFile failed: {}" , errno( ) ) ) ;
1604
+ error2 ! ( "UnmapViewOfFile failed: {}" , errno( ) ) ;
1605
1605
}
1606
1606
if libc:: CloseHandle ( mapping as HANDLE ) == FALSE {
1607
- error ! ( format! ( "CloseHandle failed: {}" , errno( ) ) ) ;
1607
+ error2 ! ( "CloseHandle failed: {}" , errno( ) ) ;
1608
1608
}
1609
1609
}
1610
1610
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ impl Wrapper {
16
16
}
17
17
18
18
pub fn say_hi ( & self ) {
19
- println ( fmt ! ( "hello %s " , * * self ) ) ;
19
+ println ! ( "hello {} " , * * self ) ;
20
20
}
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments