Make default_file_type functions const
This commit is contained in:
parent
10bbd9b495
commit
09ee0b9ba9
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue