We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668cd0c commit 65dea6dCopy full SHA for 65dea6d
3 files changed
README.md
@@ -8,8 +8,6 @@
8
9
`dfhack_remote` is a library allowing users to interact with Dwarf Fortress using a remote API.
10
11
-
12
-
13
[Dwarf Fortress] is a video game by Bay 12 Games.
14
[DFHack] is a fan made mod for Dwarf Fortress adding many
15
features to the game.
examples/hello_world.rs
@@ -1,7 +1,7 @@
1
fn main() {
2
let mut client = dfhack_remote::connect().unwrap();
3
let world_info = client.core().get_world_info().unwrap();
4
- let world_name = world_info.world_name.clone().unwrap().clone();
+ let world_name = world_info.world_name.as_ref().unwrap();
5
6
println!(
7
"Welcome to {} ({})",
images/dfhack-remote.png
-163 KB
0 commit comments