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:?})"), } } }