Skip to content

Commit

Permalink
CoAlloc: Vec (NOT String): Working around ICE rust-lang/rust issue ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-lyons-kehl committed Feb 20, 2023
1 parent 30f2fdb commit 04e7b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ impl fmt::Debug for CString {
}

#[stable(feature = "cstring_into", since = "1.7.0")]
impl From<CString> for Vec<u8> {
impl From<CString> for Vec<u8, Global, DEFAULT_COOP_PREFERRED> {
/// Converts a [`CString`] into a <code>[Vec]<[u8]></code>.
///
/// The conversion consumes the [`CString`], and removes the terminating NUL byte.
Expand Down

0 comments on commit 04e7b61

Please sign in to comment.