use chars instead of splitting the string by index

This fixes an issue where multiple byte UTF-8 characters get split in half and the program panics
This commit is contained in:
OMGeeky
2023-06-17 17:56:19 +02:00
parent 80ec6773d1
commit fbc4ec1ecd
2 changed files with 11 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "downloader"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html