mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
pref: apply const to applicable functions
This commit is contained in:
parent
21205fc3cb
commit
e1bffd2045
2 changed files with 5 additions and 5 deletions
|
|
@ -115,7 +115,7 @@ impl Default for RequestSettings {
|
|||
impl RequestSettings {
|
||||
/// Make a new *RequestSettings* with just the hostname, the protocol
|
||||
/// version defaults to -1
|
||||
pub fn new_just_hostname(hostname: String) -> Self {
|
||||
pub const fn new_just_hostname(hostname: String) -> Self {
|
||||
Self {
|
||||
hostname,
|
||||
protocol_version: -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue