Fix rogcc not closing when run-in-background

This commit is contained in:
Luke D. Jones
2022-11-06 21:58:33 +13:00
parent 0b71104833
commit 7385844a9b
13 changed files with 171 additions and 130 deletions

View File

@@ -325,8 +325,8 @@ impl AuraEffect {
&self.mode
}
pub fn mode_name(&self) -> String {
(<&str>::from(&self.mode)).to_string()
pub fn mode_name(&self) -> &str {
<&str>::from(&self.mode)
}
pub fn mode_num(&self) -> u8 {