Skip to content

Commit 9f52884

Browse files
committed
Change wording
Changed methods from `is_remote` to `is_remote_wrapper` to better indicate that they are NOT the remote types themselves.
1 parent 5e78667 commit 9f52884

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

crates/bevy_reflect/bevy_reflect_derive/src/derive_data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<'a> ReflectStruct<'a> {
309309
}
310310

311311
/// Whether this reflected struct represents a remote type or not.
312-
pub fn is_remote(&self) -> bool {
312+
pub fn is_remote_wrapper(&self) -> bool {
313313
self.remote_ty.is_some()
314314
}
315315

@@ -379,7 +379,7 @@ impl<'a> ReflectEnum<'a> {
379379
}
380380

381381
/// Whether this reflected enum represents a remote type or not.
382-
pub fn is_remote(&self) -> bool {
382+
pub fn is_remote_wrapper(&self) -> bool {
383383
self.remote_ty.is_some()
384384
}
385385

crates/bevy_reflect/bevy_reflect_derive/src/from_reflect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub(crate) fn impl_enum(reflect_enum: &ReflectEnum) -> TokenStream {
4343
variant_constructors,
4444
} = get_variant_constructors(reflect_enum, &ref_value, false);
4545

46-
let match_branches = if reflect_enum.is_remote() {
46+
let match_branches = if reflect_enum.is_remote_wrapper() {
4747
quote!{
4848
#(#variant_names => Some(Self(#variant_constructors)),)*
4949
}

crates/bevy_reflect/bevy_reflect_derive/src/impls/enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use quote::quote;
88
pub(crate) fn impl_enum(reflect_enum: &ReflectEnum) -> TokenStream {
99
let bevy_reflect_path = reflect_enum.meta().bevy_reflect_path();
1010
let enum_name = reflect_enum.meta().type_name();
11-
let is_remote = reflect_enum.is_remote();
11+
let is_remote = reflect_enum.is_remote_wrapper();
1212

1313
// For `match self` expressions where self is a reference
1414
let match_this = if is_remote {

crates/bevy_reflect/bevy_reflect_derive/src/struct_utility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl FieldAccessors {
7373
where
7474
F: FnMut(&StructField, proc_macro2::TokenStream) -> proc_macro2::TokenStream,
7575
{
76-
let is_remote = reflect_struct.is_remote();
76+
let is_remote = reflect_struct.is_remote_wrapper();
7777
reflect_struct
7878
.active_fields()
7979
.map(|field| {

0 commit comments

Comments
 (0)