Skip to content

Commit

Permalink
fix: clippy on latest-nightly is more strict about comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jhellerstein committed Oct 23, 2024
1 parent 698e57c commit 64d8442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lattices/src/ght_lattice.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Lattice traits for GHT
use core::cmp::Ordering::{Equal, Greater, Less};
use std::cmp::Ordering;
use std::collections::HashMap;
Expand All @@ -9,10 +11,6 @@ use variadics::{var_expr, var_type, CloneVariadic, PartialEqVariadic, SplitBySuf
use crate::ght::{GeneralizedHashTrieNode, GhtGet, GhtInner, GhtLeaf};
use crate::{IsBot, IsTop, LatticeBimorphism, LatticeOrd, Merge};

//////////////////////////
/// Lattice traits for GHT
//////////////////////////

impl<Head, Node> Merge<GhtInner<Head, Node>> for GhtInner<Head, Node>
where
Node: GeneralizedHashTrieNode + Merge<Node>,
Expand Down
6 changes: 3 additions & 3 deletions lattices/src/ght_lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ use crate::ght::{GeneralizedHashTrieNode, GhtGet, GhtInner, GhtLeaf};
/// starting with a trie of height 0 and continuing until a trie of height |key| - 1.
/// Our `force` method does not add a node above a leaf L as in the paper. Instead
/// it `take`s L from the current trie and merges it into the next trie to the right which is 1 taller.
/// A trait for the behavior we need from the nodes in a COLT forest. Every `ColtForestNode`
/// is a `GeneralizedHashTrieNode` with some extra methods.
//
/// The following trait provides the behavior we need from the nodes in a COLT forest. Every
/// `ColtForestNode` is a `GeneralizedHashTrieNode` with some extra methods.
pub trait ColtForestNode: GeneralizedHashTrieNode {
/// result of `force`ing a node
type Force: GeneralizedHashTrieNode;
Expand Down

0 comments on commit 64d8442

Please sign in to comment.