diff --git a/graph/src/data/value.rs b/graph/src/data/value.rs index 100681fdd72..b4ede7540a4 100644 --- a/graph/src/data/value.rs +++ b/graph/src/data/value.rs @@ -276,7 +276,7 @@ impl<'a> IntoIterator for &'a Object { impl std::fmt::Debug for Object { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_map() - .entries(self.0.into_iter().map(|e| { + .entries(self.0.iter().map(|e| { ( e.key.as_ref().map(|w| w.as_str()).unwrap_or("---"), &e.value, diff --git a/graph/src/schema/input/mod.rs b/graph/src/schema/input/mod.rs index 4f89e1e0cee..84897299785 100644 --- a/graph/src/schema/input/mod.rs +++ b/graph/src/schema/input/mod.rs @@ -929,7 +929,7 @@ impl Aggregation { pub fn dimensions(&self) -> impl Iterator { self.fields - .into_iter() + .iter() .filter(|field| &field.name != &*ID && field.name != kw::TIMESTAMP) } @@ -1240,7 +1240,7 @@ impl InputSchema { }; Ok(obj_type .shared_interfaces - .into_iter() + .iter() .map(|atom| EntityType::new(self.cheap_clone(), *atom)) .collect()) } diff --git a/graph/src/util/intern.rs b/graph/src/util/intern.rs index 988a96bc7f8..c29f4a3672e 100644 --- a/graph/src/util/intern.rs +++ b/graph/src/util/intern.rs @@ -33,6 +33,7 @@ pub struct Atom(AtomInt); /// An atom and the underlying pool. A `FatAtom` can be used in place of a /// `String` or `Word` +#[allow(dead_code)] pub struct FatAtom { pool: Arc, atom: Atom, diff --git a/store/postgres/src/relational.rs b/store/postgres/src/relational.rs index 3e44c8054a0..8ceb8d9c714 100644 --- a/store/postgres/src/relational.rs +++ b/store/postgres/src/relational.rs @@ -1486,7 +1486,7 @@ impl Table { let table_name = SqlName::from(defn.as_str()); let columns = object_type .fields - .into_iter() + .iter() .filter(|field| !field.is_derived()) .map(|field| Column::new(schema, &table_name, field, catalog)) .chain(fulltexts.iter().map(Column::new_fulltext))