Skip to content

Commit

Permalink
Fix a borrowing safety bug in slices
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Mar 20, 2022
1 parent e6761fc commit cbb2536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cglue/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cglue"
version = "0.2.10"
version = "0.2.11"
authors = ["Aurimas Blažulionis <0x60@pm.me>"]
edition = "2018"
description = "FFI safe abstractions for making plugins and C-compatible libraries"
Expand Down
2 changes: 1 addition & 1 deletion cglue/src/slice.rs
Expand Up @@ -252,7 +252,7 @@ impl<'a, T> From<CSliceMut<'a, T>> for &'a [T] {
}
}

impl<'a: 'b, 'b, T> From<&'b CSliceMut<'a, T>> for CSliceMut<'a, T> {
impl<'a: 'b, 'b, T> From<&'b CSliceMut<'a, T>> for CSliceRef<'a, T> {
fn from(from: &'b CSliceMut<'a, T>) -> Self {
Self {
data: from.data,
Expand Down

0 comments on commit cbb2536

Please sign in to comment.