1
Fork 0

Use a side-table of consts instead of matching on the DepKind enum.

This commit is contained in:
Camille GILLOT 2020-10-27 18:36:11 +01:00
parent d1220fdedf
commit 016ea6b319
2 changed files with 48 additions and 2 deletions

View file

@ -61,7 +61,7 @@ pub trait DepContext: Copy {
}
/// Describe the different families of dependency nodes.
pub trait DepKind: Copy + fmt::Debug + Eq + Ord + Hash {
pub trait DepKind: Copy + fmt::Debug + Eq + Hash {
const NULL: Self;
/// Return whether this kind always require evaluation.