i18n: fix clippy warnings
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user