Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite Clone trait for NBT #11

Open
ya7on opened this issue Nov 30, 2023 · 0 comments
Open

Rewrite Clone trait for NBT #11

ya7on opened this issue Nov 30, 2023 · 0 comments
Labels
invalid This doesn't seem right

Comments

@ya7on
Copy link
Owner

ya7on commented Nov 30, 2023

impl Clone for NBT {
// TODO
fn clone(&self) -> Self {
let bin = self.pack();
Self::unpack(&mut std::io::Cursor::new(bin), self.0.is_some())
}
}

@ya7on ya7on added the invalid This doesn't seem right label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant