i18n: fix clippy warnings

This commit is contained in:
Quentin Gliech
2023-10-03 18:16:42 +02:00
parent ae62b41683
commit 671e16b5f3
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ impl Context {
pub fn set_key_location(&self, mut key: Key, span: Span) -> Key {
if let Some(file) = &self.current_file {
key.location = Some(Location {
file: file.to_owned(),
file: file.clone(),
span,
});
}

View File

@@ -287,7 +287,7 @@ impl Tree {
next_key: K,
mut path: I,
) -> Option<&Node> {
let next = self.inner.get(next_key.deref())?;
let next = self.inner.get(&*next_key)?;
match path.next() {
Some(next_key) => match &next.value {