modified: Cargo.lock
modified: Cargo.toml modified: src/lib.rs
This commit is contained in:
parent
0ade42bb74
commit
165fe6c7ec
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -323,7 +323,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nicotine"
|
name = "nicotine"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"walkdir",
|
"walkdir",
|
||||||
"zip",
|
"zip",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nicotine"
|
name = "nicotine"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "A small rust crate for patching mojang's Authlib"
|
description = "A small rust crate for patching mojang's Authlib"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
@ -79,7 +79,7 @@ fn zip_dir<T: Write + Seek>(
|
|||||||
|
|
||||||
let mut buffer = Vec::new();
|
let mut buffer = Vec::new();
|
||||||
|
|
||||||
for entry in walkdir::WalkDir::new(src_dir) {
|
for entry in walkdir::WalkDir::new(src_dir).min_depth(1) {
|
||||||
let entry = entry.unwrap();
|
let entry = entry.unwrap();
|
||||||
let path = entry.path();
|
let path = entry.path();
|
||||||
let name = path.strip_prefix(prefix).unwrap();
|
let name = path.strip_prefix(prefix).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user