Remove unnecessary borrow (#30)

This commit is contained in:
Ben Armstead 2021-09-10 23:35:23 +01:00 committed by GitHub
parent d268d4ca13
commit 0b8e237280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ impl<'a, T: DiffableStr + ?Sized> DiffableStrRef for Cow<'a, T> {
type Output = T;
fn as_diffable_str(&self) -> &T {
&self
self
}
}