Skip to content

Commit

Permalink
libcraft: Derive Clone for use with quill (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambeeeeee authored Mar 3, 2021
1 parent e82d55e commit 6455582
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libcraft/crates/core/src/interaction.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub enum InteractionType {
Interact,
Attack,
Expand Down
2 changes: 1 addition & 1 deletion libcraft/crates/core/src/player.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub enum Hand {
Main,
Offhand,
Expand Down
2 changes: 1 addition & 1 deletion libcraft/crates/core/src/positions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ impl From<BlockPosition> for ChunkPosition {
}
}

#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub enum BlockFace {
Bottom,
Top,
Expand Down

0 comments on commit 6455582

Please sign in to comment.