remove explicit Default impl

This commit is contained in:
Niko Matsakis 2021-10-27 20:36:01 -04:00
parent ba6165726b
commit 213e16f4ee

View file

@ -2,7 +2,7 @@ use crate::{DatabaseKeyIndex, RuntimeId};
use rustc_hash::FxHashMap;
use smallvec::SmallVec;
#[derive(Debug)]
#[derive(Debug, Default)]
pub(super) struct DependencyGraph {
/// A `(K -> V)` pair in this map indicates that the the runtime
/// `K` is blocked on some query executing in the runtime `V`.
@ -21,15 +21,6 @@ struct Edge {
path: Vec<DatabaseKeyIndex>,
}
impl Default for DependencyGraph {
fn default() -> Self {
DependencyGraph {
edges: Default::default(),
query_dependents: Default::default(),
}
}
}
impl DependencyGraph {
/// True if `from_id` depends on `to_id`.
///