Skip to content

Commit

Permalink
Upgrade TrajoptLib to use new cancellation method (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jul 3, 2024
1 parent 67a636b commit b7fea34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src-tauri/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 src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tauri-build = { version = "1.5.2", features = [] }
tauri = { version = "1.6.6", features = [ "os-all", "window-close", "window-set-title", "path-all", "dialog", "dialog-confirm", "dialog-save", "dialog-open", "dialog-ask", "fs-all", "shell-open", "devtools"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
trajoptlib = { git = "https://github.com/SleipnirGroup/TrajoptLib.git", rev = "674240dd0016c9190998cd2e2cd846a4c34756d3" }
trajoptlib = { git = "https://github.com/SleipnirGroup/TrajoptLib.git", rev = "3f3ee40c23a980505b04bcfcb183043b7fe91771" }
open = "3"
lazy_static = "1.4.0"

Expand Down
3 changes: 1 addition & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ fn fix_scope(idx: usize, removed_idxs: &Vec<usize>) -> usize {

#[tauri::command]
async fn cancel() {
let mut builder = SwervePathBuilder::new();
builder.cancel_all();
trajoptlib::cancel_all();
}

#[derive(Debug, serde::Serialize, serde::Deserialize, Clone)]
Expand Down

0 comments on commit b7fea34

Please sign in to comment.