diff options
| author | Rubens Brandao <git@rubens.io> | 2024-04-06 16:32:00 -0300 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2024-04-09 13:39:49 -0400 |
| commit | 193dea95daedde471e6f1fbcbeaf1932c6fbd50c (patch) | |
| tree | 99be67d81a899543ed5e4636eea3d589583e48a5 /rust/examples/flowgraph/src | |
| parent | a6b48153b64a227c3492d77a96e679b8c469034c (diff) | |
replace BStr with str
Diffstat (limited to 'rust/examples/flowgraph/src')
| -rw-r--r-- | rust/examples/flowgraph/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rust/examples/flowgraph/src/lib.rs b/rust/examples/flowgraph/src/lib.rs index f80879e5..0375705d 100644 --- a/rust/examples/flowgraph/src/lib.rs +++ b/rust/examples/flowgraph/src/lib.rs @@ -3,16 +3,15 @@ use binaryninja::{ command::register, disassembly::{DisassemblyTextLine, InstructionTextToken, InstructionTextTokenContents}, flowgraph::{BranchType, EdgePenStyle, EdgeStyle, FlowGraph, FlowGraphNode, ThemeColor}, - string::BnString, }; fn test_graph(view: &BinaryView) { let graph = FlowGraph::new(); let disassembly_lines_a = vec![DisassemblyTextLine::from(vec![ - InstructionTextToken::new(BnString::new("Li"), InstructionTextTokenContents::Text), - InstructionTextToken::new(BnString::new("ne"), InstructionTextTokenContents::Text), - InstructionTextToken::new(BnString::new(" 1"), InstructionTextTokenContents::Text), + InstructionTextToken::new("Li", InstructionTextTokenContents::Text), + InstructionTextToken::new("ne", InstructionTextTokenContents::Text), + InstructionTextToken::new(" 1", InstructionTextTokenContents::Text), ])]; let node_a = FlowGraphNode::new(&graph); |
