File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1717 cargo install --path .
1818 ```
19193 . Usage
20- ` cargo pn -- -m datarace -t my-crate --type library --api-spec tests/lib.toml--viz-callgraph --viz-petrinet `
20+ ` cargo pn -- -m datarace -t my_crate --type library --api-spec tests/lib.toml--viz-callgraph --viz-petrinet `
2121
Original file line number Diff line number Diff line change @@ -246,7 +246,10 @@ impl Options {
246246 _ => DetectorKind :: Deadlock ,
247247 } ;
248248
249- self . crate_name = matches. get_one :: < String > ( "target_crate" ) . unwrap ( ) . clone ( ) ;
249+ self . crate_name = matches
250+ . get_one :: < String > ( "target_crate" )
251+ . expect ( "The target crate must be declared and linked with an underscore." )
252+ . clone ( ) ;
250253 self . output = matches
251254 . get_one :: < String > ( "diagnostics_output" )
252255 . cloned ( )
You can’t perform that action at this time.
0 commit comments