Skip to content

Commit

Permalink
use trim_end on command input
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Nov 12, 2022
1 parent 460d57a commit 4b10710
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rconcli"
version = "1.1.1"
version = "1.1.2"
description = "A simple RCON CLI for Minecraft servers."
authors = ["Ringo Hoffmann <contact@zekro.de>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -138,7 +138,7 @@ fn main() {
}

let res = client
.send_command(cmd[..cmd.len() - 1].into())
.send_command(cmd.trim_end().into())
.expect("Command execution failed");

println!("{}", res.body);
Expand Down

0 comments on commit 4b10710

Please sign in to comment.