const node new

This commit is contained in:
Edgar 2022-10-26 15:38:05 +02:00
parent f05132f0ee
commit 264ef60602
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "rustyman"
version = "0.2.3"
version = "0.3.0"
edition = "2021"
authors = ["Edgar <git@edgarluque.com>"]
description = "Huffman compression and decompression"
@ -10,6 +10,7 @@ keywords = ["huffman", "compression", "decompression", "lossless", "huffman-codi
categories = ["compression", "algorithms"]
documentation = "https://docs.rs/rustyman"
readme = "README.md"
rust-version = "1.63.0" # array from_fn
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -49,7 +49,7 @@ struct Node {
}
impl Node {
fn new(index: usize, count: usize) -> Self {
const fn new(index: usize, count: usize) -> Self {
Self {
index,
count,