pref: apply const to applicable functions

This commit is contained in:
CosminPerRam 2023-12-11 03:49:18 +02:00
parent 21205fc3cb
commit e1bffd2045
2 changed files with 5 additions and 5 deletions

View file

@ -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,