mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 13:10:19 +00:00
mark some unused variables
This commit is contained in:
parent
41f9ca6462
commit
e331f7102d
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
cycle::CycleRecoveryStrategy,
|
cycle::CycleRecoveryStrategy,
|
||||||
ingredient::{Ingredient, MutIngredient},
|
ingredient::Ingredient,
|
||||||
key::{DatabaseKeyIndex, DependencyIndex},
|
key::{DatabaseKeyIndex, DependencyIndex},
|
||||||
runtime::{local_state::QueryInputs, Runtime},
|
runtime::{local_state::QueryInputs, Runtime},
|
||||||
AsId, IngredientIndex, Revision,
|
AsId, IngredientIndex, Revision,
|
||||||
|
@ -37,7 +37,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_input(&mut self, runtime: &mut Runtime) -> Id {
|
pub fn new_input(&mut self, _runtime: &mut Runtime) -> Id {
|
||||||
let next_id = self.counter;
|
let next_id = self.counter;
|
||||||
self.counter += 1;
|
self.counter += 1;
|
||||||
Id::from_id(crate::Id::from(next_id))
|
Id::from_id(crate::Id::from(next_id))
|
||||||
|
@ -48,7 +48,7 @@ impl<DB: ?Sized, Id> Ingredient<DB> for InputIngredient<Id>
|
||||||
where
|
where
|
||||||
Id: InputId,
|
Id: InputId,
|
||||||
{
|
{
|
||||||
fn maybe_changed_after(&self, db: &DB, input: DependencyIndex, revision: Revision) -> bool {
|
fn maybe_changed_after(&self, _db: &DB, _input: DependencyIndex, _revision: Revision) -> bool {
|
||||||
// Input ingredients are just a counter, they store no data, they are immortal.
|
// Input ingredients are just a counter, they store no data, they are immortal.
|
||||||
// Their *fields* are stored in function ingredients elsewhere.
|
// Their *fields* are stored in function ingredients elsewhere.
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue