Skip to content

Commit 65dea6d

Browse files
committed
Update example
1 parent 668cd0c commit 65dea6d

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
`dfhack_remote` is a library allowing users to interact with Dwarf Fortress using a remote API.
1010

11-
![dfhack-remote](images/dfhack-remote.png)
12-
1311
[Dwarf Fortress] is a video game by Bay 12 Games.
1412
[DFHack] is a fan made mod for Dwarf Fortress adding many
1513
features to the game.

examples/hello_world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fn main() {
22
let mut client = dfhack_remote::connect().unwrap();
33
let world_info = client.core().get_world_info().unwrap();
4-
let world_name = world_info.world_name.clone().unwrap().clone();
4+
let world_name = world_info.world_name.as_ref().unwrap();
55

66
println!(
77
"Welcome to {} ({})",

images/dfhack-remote.png

-163 KB
Binary file not shown.

0 commit comments

Comments
 (0)