Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
NotThatRqd committed Jun 4, 2024
1 parent a82b803 commit b4d8e41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/valence_protocol/src/item.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::io::Write;

pub use valence_generated::item::ItemKind;
use valence_nbt::{Compound, compound, List};
use uuid::Uuid;
pub use valence_generated::item::ItemKind;
use valence_nbt::{compound, Compound, List};

use crate::{Decode, Encode};

Expand Down Expand Up @@ -45,7 +45,10 @@ impl ItemStack {
}

#[must_use]
pub fn with_playerhead_texture_value(mut self, texture_value: impl Into<String>) -> Result<Self, ()> {
pub fn with_playerhead_texture_value(
mut self,
texture_value: impl Into<String>,
) -> Result<Self, ()> {
if self.item != ItemKind::PlayerHead {
return Err(());
}
Expand Down

0 comments on commit b4d8e41

Please sign in to comment.