Skip to content

Commit

Permalink
docs & rm unneeded derive(Clone)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Oct 23, 2024
1 parent c9bb30c commit d048b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct Hypercore {
}

/// Response from append, matches that of the Javascript result
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, PartialEq)]
pub struct AppendOutcome {
/// Length of the hypercore after append
pub length: u64,
Expand Down Expand Up @@ -359,7 +359,7 @@ impl Hypercore {
pub async fn get(&mut self, index: u64) -> Result<Option<Vec<u8>>, HypercoreError> {
if !self.bitfield.get(index) {
#[cfg(feature = "replication")]
// if not in this core, try to get over network
// if not in this core, emit Event::Get(index)
{
self.events.send_on_get(index);
}
Expand Down

0 comments on commit d048b62

Please sign in to comment.