Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryntet committed Aug 21, 2024
1 parent 1bbadf7 commit 7818f83
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions pumpkin-inventory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ pub enum WindowType {

impl WindowType {
pub const fn default_title(&self) -> &'static str {
match self {
// TODO: Add titles here:
/*match self {
_ => "WINDOW TITLE",
}
}*/
"WINDOW TITLE"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl<'a> CSetContainerContent<'a> {
Self {
window_id,
state_id,
count: slots.len().try_into().unwrap(),
count: slots.len().into(),
slot_data: slots,
carried_item,
}
Expand Down
3 changes: 1 addition & 2 deletions pumpkin-protocol/src/slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::VarInt;
use pumpkin_world::item::Item;
use serde::ser::SerializeSeq;
use serde::{
de::{self, SeqAccess, Visitor},
de::{self, SeqAccess},
Deserialize, Serialize, Serializer,
};

Expand Down Expand Up @@ -129,7 +129,6 @@ impl Serialize for Slot {
}
}


impl Slot {
pub fn to_item(self) -> Option<Item> {
let item_id = self.item_id?.0.try_into().unwrap();
Expand Down
1 change: 0 additions & 1 deletion pumpkin/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ use pumpkin_protocol::{
};

use pumpkin_inventory::WindowType;
use pumpkin_protocol::bytebuf::ByteBuffer;
use pumpkin_protocol::client::play::COpenScreen;
use pumpkin_protocol::slot::Slot;
use pumpkin_world::item::Item;
Expand Down

0 comments on commit 7818f83

Please sign in to comment.