Skip to content

Commit

Permalink
all: Make compile with rustc 1.80 pass without warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lutter committed Aug 2, 2024
1 parent bc85aa8 commit b0c8952
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion graph/src/data/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions graph/src/schema/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ impl Aggregation {

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

Expand Down Expand Up @@ -1240,7 +1240,7 @@ impl InputSchema {
};
Ok(obj_type
.shared_interfaces
.into_iter()
.iter()
.map(|atom| EntityType::new(self.cheap_clone(), *atom))
.collect())
}
Expand Down
1 change: 1 addition & 0 deletions graph/src/util/intern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AtomPool>,
atom: Atom,
Expand Down
2 changes: 1 addition & 1 deletion store/postgres/src/relational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b0c8952

Please sign in to comment.