Skip to content

Commit

Permalink
fix incorrect &self annotation
Browse files Browse the repository at this point in the history
This is a problem with the code uncovered by
the fix in rust-lang/rust#38897
  • Loading branch information
nikomatsakis committed Feb 5, 2017
1 parent 297b950 commit 4fa8cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl ToMdbValue for String {
}

impl<'a> ToMdbValue for &'a str {
fn to_mdb_value<'b, 's>(&'s self) -> MdbValue<'b> {
fn to_mdb_value<'b>(&'b self) -> MdbValue<'b> {
unsafe {
MdbValue::new(mem::transmute(self.as_ptr()),
self.len())
Expand Down

0 comments on commit 4fa8cea

Please sign in to comment.