mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-02 05:49:06 +02:00
io: remove a few unnecessary [..] for Vec -> slice deref
This commit is contained in:
parent
3cdafa7be9
commit
da8ac506d9
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ where
|
|||
.read_to_end(&mut buf)
|
||||
.context("Failed to read file")?;
|
||||
|
||||
fastnbt::from_bytes(&buf[..]).context("Failed to decode NBT data")
|
||||
fastnbt::from_bytes(&buf).context("Failed to decode NBT data")
|
||||
}
|
||||
|
||||
pub fn from_file<P, T>(path: P) -> Result<T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue