Skip to content

Commit

Permalink
Cleaning dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
Spagett1 committed Jun 21, 2023
1 parent 082aee0 commit bd93d3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
18 changes: 0 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Cargo.toml
Expand Up @@ -9,11 +9,8 @@ build = "build.rs"
[dependencies]
eframe = "0.21.3"
zip-extract = "0.1.1"
poll-promise = "0.2.0"
tinyjson = "2.5.0"
egui-notify = "0.6.0"
rfd = "0.11.3"
regex = "1.6.0"
whoami = "1.2.3"
serde = { version = "^1.0.145", features = ["derive"] }
serde_json = { version="1.0.89" }
Expand Down
7 changes: 3 additions & 4 deletions src/main.rs
Expand Up @@ -21,7 +21,7 @@ use egui::Context;
use egui_extras::RetainedImage;
use egui_notify::{Anchor, Toasts};
use serde::{Deserialize, Serialize};
use tinyjson::JsonValue;
use serde_json::Value;

const ICON: &[u8] = include_bytes!("../assets/pine64logo.ico");

Expand Down Expand Up @@ -275,10 +275,9 @@ impl eframe::App for Flasher {
let string =
String::from_utf8(std::fs::read(self.config.metadata_path.clone()).unwrap())
.unwrap();
let json: JsonValue = string.parse().unwrap();
let json: Value = serde_json::from_str(string.as_str()).unwrap();
for i in 0..3 {
let version = json[i]["tag_name"].stringify().unwrap();
let version = &version[1..version.len() - 1];
let version = json[i]["tag_name"].as_str().unwrap();
self.config.vers.push(version.to_string());
}
self.config.versions_checked = true;
Expand Down

0 comments on commit bd93d3f

Please sign in to comment.