Update rust toolchain to 1.80 #180

Merged
wojtek merged 6 commits from 179---update-rust-toolchain-to-1.80-in-ci into main 2024-08-24 15:10:54 +02:00
Showing only changes of commit 86f539d1f6 - Show all commits

View File

@ -231,13 +231,13 @@ impl<'a> ArtistOverlay<'a> {
let indent = format!("\n{item_indent}"); let indent = format!("\n{item_indent}");
let list = vec let list = vec
.iter() .iter()
.map(|(k, v)| format!("{k}: {}", Self::vec_to_string(v, list_indent))) .map(|(k, v)| format!("{k}: {}", Self::slice_to_string(v, list_indent)))
.collect::<Vec<String>>() .collect::<Vec<String>>()
.join(&indent); .join(&indent);
format!("{indent}{list}") format!("{indent}{list}")
} }
fn vec_to_string<S: AsRef<str>>(vec: &Vec<S>, indent: &str) -> String { fn slice_to_string<S: AsRef<str>>(vec: &[S], indent: &str) -> String {
if vec.len() < 2 { if vec.len() < 2 {
vec.first() vec.first()
.map(|item| item.as_ref()) .map(|item| item.as_ref())