mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Utils] Replace address and port as string string and additions to format!
This commit is contained in:
parent
7352c595e9
commit
3dacc09173
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ pub fn error_by_expected_size(expected: usize, size: usize) -> GDResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn address_and_port_as_string(address: &str, port: u16) -> String {
|
pub fn address_and_port_as_string(address: &str, port: u16) -> String {
|
||||||
address.to_string() + ":" + &*port.to_string()
|
format!("{}:{}", address, port)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn u8_lower_upper(n: u8) -> (u8, u8) {
|
pub fn u8_lower_upper(n: u8) -> (u8, u8) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue