remove trailing whitespace

this seems to be a rustfmt bug?
This commit is contained in:
Niko Matsakis 2022-08-01 13:54:21 +03:00
parent 985650523e
commit e3769b5c31
2 changed files with 13 additions and 12 deletions

View file

@ -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

View file

@ -0,0 +1 @@