rename MutQueryStorageOps to InputQueryStorageOps

This commit is contained in:
Niko Matsakis 2018-10-09 15:40:15 -04:00
parent bf44ef35d4
commit 6a0ed30d73
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ use crate::runtime::Revision;
use crate::runtime::StampedValue; use crate::runtime::StampedValue;
use crate::CycleDetected; use crate::CycleDetected;
use crate::Database; use crate::Database;
use crate::MutQueryStorageOps; use crate::InputQueryStorageOps;
use crate::Query; use crate::Query;
use crate::QueryDescriptor; use crate::QueryDescriptor;
use crate::QueryStorageOps; use crate::QueryStorageOps;
@ -117,7 +117,7 @@ where
} }
} }
impl<DB, Q> MutQueryStorageOps<DB, Q> for InputStorage<DB, Q> impl<DB, Q> InputQueryStorageOps<DB, Q> for InputStorage<DB, Q>
where where
Q: Query<DB>, Q: Query<DB>,
DB: Database, DB: Database,

View file

@ -124,7 +124,7 @@ where
/// An optional trait that is implemented for "user mutable" storage: /// An optional trait that is implemented for "user mutable" storage:
/// that is, storage whose value is not derived from other storage but /// that is, storage whose value is not derived from other storage but
/// is set independently. /// is set independently.
pub trait MutQueryStorageOps<DB, Q>: Default pub trait InputQueryStorageOps<DB, Q>: Default
where where
DB: Database, DB: Database,
Q: Query<DB>, Q: Query<DB>,
@ -174,7 +174,7 @@ where
/// an active query computation. /// an active query computation.
pub fn set(&self, key: Q::Key, value: Q::Value) pub fn set(&self, key: Q::Key, value: Q::Value)
where where
Q::Storage: MutQueryStorageOps<DB, Q>, Q::Storage: InputQueryStorageOps<DB, Q>,
{ {
self.storage.set(self.db, &key, value); self.storage.set(self.db, &key, value);
} }