Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 5 additions & 53 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rfd = "0.17.0" # For file dialogs
image = "0.25" # Image lib, here used for binarizing and scaling images
vtracer = { git = "https://github.com/RouHim/vtracer" } # Generates vector images from raster images
visioncortex = "0.8" # Helper library for vtracer
self_update = { version = "0.44.0", features = ["rustls", "reqwest"], default-features = false } # For updating the app
self_update = { version = "1.0.0", features = ["rustls", "reqwest", "github"], default-features = false } # For updating the app

[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
Expand Down
6 changes: 4 additions & 2 deletions src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ pub fn update() {

match status {
Err(err) => println!("Failed to update: {err}"),
Ok(self_update::Status::UpToDate(version)) => {
Ok(self_update::VersionStatus::UpToDate(version)) => {
println!("binvec {version} is up to date");
}
Ok(self_update::Status::Updated(version)) => {
Ok(self_update::VersionStatus::Updated(version)) => {
println!("binvec updated to {version}");
if env::var_os(RESTART_MARKER).is_some() {
eprintln!(
Expand All @@ -44,6 +44,8 @@ pub fn update() {
}
restart_process(current_executable);
}
// `VersionStatus` is non-exhaustive; future variants need no handling.
Ok(_) => {}
}
}

Expand Down
Loading