Skip to content

Commit

Permalink
fix(dot): doublecircle should be for final states only
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Oct 5, 2023
1 parent 4125700 commit 93ba461
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
tags: '*'
tags: ['*']

env:
CARGO_TERM_COLOR: always
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
pull_request:
branches: '*'
branches: ['*']

env:
CARGO_TERM_COLOR: always
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtasktic"
version = "0.5.0"
version = "0.5.1"
authors = ["Jones Magloire @Joxit"]
description = "Command-line task management tool for execution of regular long sequential or parallel tasks."
edition = "2018"
Expand All @@ -17,7 +17,7 @@ structopt = "^0.3"
yaml-rust = "^0.4"
linked-hash-map = "^0.5"
libc = "^0.2"
attohttpc = "^0.17"
attohttpc = "^0.26"
openssl = { version = "^0.10", features = ["vendored"] }
json = "^0.12"
hostname = "^0.3"
Expand Down
8 changes: 4 additions & 4 deletions src/fst/dot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn dot_write_file<W: Write>(fst: &TaskFst, writer: &mut W) -> std::io::Resul
let node = iter.next().unwrap();
let label = node.label.replace("\"", "\\\"");
let id = format_id(&node.label);
let shape = if node.prev.len() == 0 {
let shape = if node.next.len() == 0 {
"doublecircle"
} else {
"circle"
Expand Down Expand Up @@ -83,16 +83,16 @@ mod test {
assert_eq!(
result,
r#"digraph {
a[label="\"a\"" shape=doublecircle]
a[label="\"a\"" shape=circle]
a -> b_a_ba
a -> c
e[label="e" shape=doublecircle]
e[label="e" shape=circle]
e -> ds
b_a_ba[label="b a ba" shape=circle]
b_a_ba -> c
c[label="c" shape=circle]
c -> ds
ds[label="d%s" shape=circle]
ds[label="d%s" shape=doublecircle]
}
"#
);
Expand Down

0 comments on commit 93ba461

Please sign in to comment.