From ce179819ab75460453236723c7f9a89fd61fb99a Mon Sep 17 00:00:00 2001 From: Timon Vonk Date: Sun, 15 Sep 2024 15:48:37 +0200 Subject: [PATCH] fix: Clippy --- swiftide-core/src/node.rs | 2 +- swiftide-core/src/query_evaluation.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/swiftide-core/src/node.rs b/swiftide-core/src/node.rs index b6a19041..9aabf314 100644 --- a/swiftide-core/src/node.rs +++ b/swiftide-core/src/node.rs @@ -30,7 +30,7 @@ use serde::{Deserialize, Serialize}; use crate::{ metadata::Metadata, - util::{debug_long_utf8, safe_truncate_utf8}, + util::debug_long_utf8, Embedding, SparseEmbedding, }; diff --git a/swiftide-core/src/query_evaluation.rs b/swiftide-core/src/query_evaluation.rs index 1b6cb5cd..8eb91c0c 100644 --- a/swiftide-core/src/query_evaluation.rs +++ b/swiftide-core/src/query_evaluation.rs @@ -12,9 +12,9 @@ impl std::fmt::Debug for QueryEvaluation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { QueryEvaluation::RetrieveDocuments(query) => { - write!(f, "RetrieveDocuments({:?})", query) + write!(f, "RetrieveDocuments({query:?})") } - QueryEvaluation::AnswerQuery(query) => write!(f, "AnswerQuery({:?})", query), + QueryEvaluation::AnswerQuery(query) => write!(f, "AnswerQuery({query:?})"), } } }