code: Fix clippy warnings
This commit is contained in:
parent
a2e6767584
commit
369b71b15c
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ pub async fn query_attributes_future(
|
|||
file: &gio::File,
|
||||
attributes: Vec<&str>,
|
||||
) -> anyhow::Result<gio::FileInfo> {
|
||||
let mut attr_str = String::from(*attributes.get(0).context("No attributes")?);
|
||||
let mut attr_str = String::from(*attributes.first().context("No attributes")?);
|
||||
|
||||
for attr in &attributes[1..] {
|
||||
write!(attr_str, ",{}", attr)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue