fix clippy

This commit is contained in:
Bennet Bleßmann
2024-07-06 18:26:34 +02:00
parent b32498b37c
commit 943dce566b
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ mod libraries {
}
pub(crate) fn get(name: &str) -> Option<&'static str> {
LIBRARIES.with(|libs| libs.get(name).map(|&lib| lib))
LIBRARIES.with(|libs| libs.get(name).copied())
}
#[cfg(test)]

View File

@@ -38,7 +38,7 @@ pub fn write_prolog_value_as_json<W: Write>(
)
} else {
//return valid json string
writer.write_str(&s)
writer.write_str(s)
}
}
Value::List(l) => {