mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-15 01:39:25 +00:00
apply cargo fmt
This commit is contained in:
parent
dfee2b8cee
commit
bf00d4217f
3 changed files with 7 additions and 15 deletions
|
@ -5,7 +5,7 @@ use std::fmt;
|
|||
use crate::{
|
||||
cycle::CycleRecoveryStrategy,
|
||||
hash::FxDashMap,
|
||||
ingredient::{Ingredient, IngredientRequiresReset, fmt_index},
|
||||
ingredient::{fmt_index, Ingredient, IngredientRequiresReset},
|
||||
key::DependencyIndex,
|
||||
runtime::local_state::QueryOrigin,
|
||||
storage::HasJar,
|
||||
|
@ -36,7 +36,7 @@ impl<Data: Clone> AccumulatorIngredient<Data> {
|
|||
Self {
|
||||
map: FxDashMap::default(),
|
||||
index,
|
||||
debug_name
|
||||
debug_name,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -153,11 +153,7 @@ where
|
|||
panic!("unexpected call: accumulator is not registered as a dependent fn");
|
||||
}
|
||||
|
||||
fn fmt_index(
|
||||
&self,
|
||||
index: Option<crate::Id>,
|
||||
fmt: &mut fmt::Formatter<'_>,
|
||||
) -> fmt::Result {
|
||||
fn fmt_index(&self, index: Option<crate::Id>, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt_index(self.debug_name, index, fmt)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
use std::{sync::Arc, fmt};
|
||||
use std::{fmt, sync::Arc};
|
||||
|
||||
use arc_swap::ArcSwap;
|
||||
use crossbeam::{atomic::AtomicCell, queue::SegQueue};
|
||||
|
||||
use crate::{
|
||||
cycle::CycleRecoveryStrategy,
|
||||
ingredient::{IngredientRequiresReset, fmt_index},
|
||||
ingredient::{fmt_index, IngredientRequiresReset},
|
||||
jar::Jar,
|
||||
key::{DatabaseKeyIndex, DependencyIndex},
|
||||
runtime::local_state::QueryOrigin,
|
||||
|
@ -273,11 +273,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
fn fmt_index(
|
||||
&self,
|
||||
index: Option<crate::Id>,
|
||||
fmt: &mut fmt::Formatter<'_>,
|
||||
) -> fmt::Result {
|
||||
fn fmt_index(&self, index: Option<crate::Id>, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt_index(self.debug_name, index, fmt)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::fmt;
|
|||
|
||||
use crate::{
|
||||
cycle::CycleRecoveryStrategy,
|
||||
ingredient::{Ingredient, IngredientRequiresReset, fmt_index},
|
||||
ingredient::{fmt_index, Ingredient, IngredientRequiresReset},
|
||||
key::{DatabaseKeyIndex, DependencyIndex},
|
||||
runtime::{local_state::QueryOrigin, Runtime},
|
||||
AsId, IngredientIndex, Revision,
|
||||
|
|
Loading…
Reference in a new issue