mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-09 07:01:06 +00:00
Reverter errors from taking a &'static str to String
This commit is contained in:
parent
dc0926bab7
commit
7b44c5f7eb
10 changed files with 59 additions and 59 deletions
|
|
@ -29,7 +29,7 @@ pub fn query(address: &str, port: u16, timeout_settings: Option<TimeoutSettings>
|
|||
return Ok(response);
|
||||
}
|
||||
|
||||
Err(GDError::AutoQuery("No protocol returned a response.".to_string()))
|
||||
Err(GDError::AutoQuery)
|
||||
}
|
||||
|
||||
/// Queries a specific Minecraft Server type.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue