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 2
2
refs/heads/master: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5
- refs/heads/try: e02d1eb1717fee3c513baa0cb5fc39b8fa630335
5
+ refs/heads/try: ca66b8128391a2423123a873f800139a55e194bf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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