File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e02d1eb1717fee3c513baa0cb5fc39b8fa630335
2
+ refs/heads/master: ca66b8128391a2423123a873f800139a55e194bf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5
5
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
Original file line number Diff line number Diff line change @@ -277,9 +277,6 @@ impl<'self> ToCStr for &'self [u8] {
277
277
}
278
278
}
279
279
280
- /// WARNING: This function uses an optimization to only malloc a temporary
281
- /// CString when the source string is small. Do not save a reference to
282
- /// the `*libc::c_char` as it may be invalid after this function call.
283
280
fn with_c_str < T > ( & self , f : & fn ( * libc:: c_char ) -> T ) -> T {
284
281
if self . len ( ) < BUF_LEN {
285
282
do self . as_imm_buf |self_buf, self_len| {
You can’t perform that action at this time.
0 commit comments