File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8d29e8705626e28d3bf96d194dd97311e1967995
2
+ refs/heads/master: 4d788be80d98c792111f65605bb8853ab3cbdd4a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ Function: from_cstr
194
194
195
195
Create a Rust string from a null-terminated C string
196
196
*/
197
- unsafe fn from_cstr ( cstr : sbuf ) -> str {
197
+ fn from_cstr ( cstr : sbuf ) -> str unsafe {
198
198
let start = cstr;
199
199
let curr = start;
200
200
let i = 0 u;
@@ -210,7 +210,7 @@ Function: from_cstr_len
210
210
211
211
Create a Rust string from a C string of the given length
212
212
*/
213
- unsafe fn from_cstr_len ( cstr : sbuf , len : uint ) -> str {
213
+ fn from_cstr_len ( cstr : sbuf , len : uint ) -> str unsafe {
214
214
let buf: [ u8 ] = [ ] ;
215
215
vec:: reserve ( buf, len + 1 u) ;
216
216
vec:: as_buf ( buf) { |b| ptr:: memcpy ( b, cstr, len) ; }
You can’t perform that action at this time.
0 commit comments