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

Make CacheWrapper and EnvWrapper Send and Sync #586

Merged
merged 4 commits into from
Jan 31, 2022

Conversation

aleksuss
Copy link
Member

Suggestions by clippy

src/db_options.rs Outdated Show resolved Hide resolved
@@ -28,9 +28,9 @@ pub(crate) unsafe fn raw_data(ptr: *const c_char, size: usize) -> Option<Vec<u8>
if ptr.is_null() {
None
} else {
let mut dst = Vec::with_capacity(size);
let mut dst = vec![0; size];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After #583 this change would no longer be required to make clippy happy.

@aleksuss aleksuss merged commit 04a0dca into rust-rocksdb:master Jan 31, 2022
vldm pushed a commit to velas/rust-rocksdb that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants