mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-02 09:46:06 +00:00
remove trailing whitespace
this seems to be a rustfmt bug?
This commit is contained in:
parent
985650523e
commit
e3769b5c31
2 changed files with 13 additions and 12 deletions
|
@ -14,9 +14,7 @@ pub(crate) fn entity(
|
|||
args: proc_macro::TokenStream,
|
||||
input: proc_macro::TokenStream,
|
||||
) -> proc_macro::TokenStream {
|
||||
match EntityLike::new(args, input)
|
||||
.and_then(|el| el.generate_entity())
|
||||
{
|
||||
match EntityLike::new(args, input).and_then(|el| el.generate_entity()) {
|
||||
Ok(s) => s.into(),
|
||||
Err(err) => err.into_compile_error().into(),
|
||||
}
|
||||
|
@ -288,14 +286,16 @@ impl EntityLike {
|
|||
///
|
||||
/// If this is an enum, empty iterator.
|
||||
fn id_fields(&self) -> impl Iterator<Item = &EntityField> {
|
||||
self.all_entity_fields().filter(|ef| ef.is_entity_id_field())
|
||||
self.all_entity_fields()
|
||||
.filter(|ef| ef.is_entity_id_field())
|
||||
}
|
||||
|
||||
/// List of value fields (fields that are not part of the entity's identity across revisions).
|
||||
///
|
||||
/// If this is an enum, empty iterator.
|
||||
fn value_fields(&self) -> impl Iterator<Item = &EntityField> {
|
||||
self.all_entity_fields().filter(|ef| !ef.is_entity_id_field())
|
||||
self.all_entity_fields()
|
||||
.filter(|ef| !ef.is_entity_id_field())
|
||||
}
|
||||
|
||||
/// For the entity, we create a tuple that contains the function ingredients
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in a new issue