mirror of
https://github.com/figsoda/mmtc
synced 2025-02-16 13:28:33 +00:00
remove unecessary usage of String::from
This commit is contained in:
parent
8a3be66c3e
commit
4bb5b76efe
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ pub async fn queue(cl: &mut Client) -> Result<(Vec<Track>, Vec<String>)> {
|
|||
if first {
|
||||
first = false;
|
||||
} else if let (Some(file), Some(time)) = (file, time) {
|
||||
let mut track_string = String::from(file.to_lowercase());
|
||||
let mut track_string = file.to_lowercase();
|
||||
if let Some(artist) = &artist {
|
||||
track_string.push('\n');
|
||||
track_string.push_str(&artist.to_lowercase());
|
||||
|
@ -142,7 +142,7 @@ pub async fn queue(cl: &mut Client) -> Result<(Vec<Track>, Vec<String>)> {
|
|||
}
|
||||
|
||||
if let (Some(file), Some(time)) = (file, time) {
|
||||
let mut track_string = String::from(file.to_lowercase());
|
||||
let mut track_string = file.to_lowercase();
|
||||
if let Some(artist) = &artist {
|
||||
track_string.push('\n');
|
||||
track_string.push_str(&artist.to_lowercase());
|
||||
|
|
Loading…
Add table
Reference in a new issue