Skip to content

Commit

Permalink
const node new
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Oct 26, 2022
1 parent f05132f commit 264ef60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 264ef60

Please sign in to comment.