Skip to content

Commit

Permalink
fix for no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
JL710 authored and jackpot51 committed Jul 20, 2024
1 parent 05374aa commit 4f31665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl<'buffer> Clone for BufferRef<'buffer> {
fn clone(&self) -> Self {
match self {
Self::Owned(buffer) => Self::Owned(buffer.clone()),
Self::Borrowed(buffer) => Self::Owned((*buffer).to_owned()),
Self::Borrowed(buffer) => Self::Owned((*buffer).clone()),
Self::Arc(buffer) => Self::Arc(buffer.clone()),
}
}
Expand Down

0 comments on commit 4f31665

Please sign in to comment.