Make default_file_type functions const

This commit is contained in:
Paul van Tilburg 2022-05-27 22:39:53 +02:00
parent 10bbd9b495
commit 09ee0b9ba9
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ const DEFAULT_BITRATE: u32 = 64 * 1024;
const DEFAULT_FILE_TYPE: &str = "audio/mpeg";
/// Returns the default file type used by Mixcloud.
pub(crate) fn default_file_type() -> &'static str {
pub(crate) const fn default_file_type() -> &'static str {
DEFAULT_FILE_TYPE
}