Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFString refactor / cleanup #76

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

CFString: remove unnecessary casts

  • Loading branch information
TimNN committed Dec 18, 2015
commit f5c07a884c67e9184dbbf4b8fc82ebc6c83da885
@@ -86,8 +86,8 @@ impl<'a> From<&'a CFString> for Cow<'a, str> {
false as Boolean,
buffer.as_mut_ptr(),
buffer.len().to_CFIndex(),
&mut bytes_used) as usize;
assert!(chars_written.to_CFIndex() == char_len);
&mut bytes_used);
assert!(chars_written == char_len);

// This is dangerous; we over-allocate and null-terminate the string (during
// initialization).
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.