Skip to content

Commit b0c8952

Browse files
committed
all: Make compile with rustc 1.80 pass without warnings
1 parent bc85aa8 commit b0c8952

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

graph/src/data/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<'a> IntoIterator for &'a Object {
276276
impl std::fmt::Debug for Object {
277277
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278278
f.debug_map()
279-
.entries(self.0.into_iter().map(|e| {
279+
.entries(self.0.iter().map(|e| {
280280
(
281281
e.key.as_ref().map(|w| w.as_str()).unwrap_or("---"),
282282
&e.value,

graph/src/schema/input/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ impl Aggregation {
929929

930930
pub fn dimensions(&self) -> impl Iterator<Item = &Field> {
931931
self.fields
932-
.into_iter()
932+
.iter()
933933
.filter(|field| &field.name != &*ID && field.name != kw::TIMESTAMP)
934934
}
935935

@@ -1240,7 +1240,7 @@ impl InputSchema {
12401240
};
12411241
Ok(obj_type
12421242
.shared_interfaces
1243-
.into_iter()
1243+
.iter()
12441244
.map(|atom| EntityType::new(self.cheap_clone(), *atom))
12451245
.collect())
12461246
}

graph/src/util/intern.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub struct Atom(AtomInt);
3333

3434
/// An atom and the underlying pool. A `FatAtom` can be used in place of a
3535
/// `String` or `Word`
36+
#[allow(dead_code)]
3637
pub struct FatAtom {
3738
pool: Arc<AtomPool>,
3839
atom: Atom,

store/postgres/src/relational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ impl Table {
14861486
let table_name = SqlName::from(defn.as_str());
14871487
let columns = object_type
14881488
.fields
1489-
.into_iter()
1489+
.iter()
14901490
.filter(|field| !field.is_derived())
14911491
.map(|field| Column::new(schema, &table_name, field, catalog))
14921492
.chain(fulltexts.iter().map(Column::new_fulltext))

0 commit comments

Comments
 (0)