Fix up variable naming in serialize_unresolved_minimal

This commit is contained in:
Lucien Greathouse
2019-03-11 16:35:54 -07:00
parent 376f2a554a
commit 5b9facee00

View File

@@ -77,11 +77,11 @@ impl SourceProject {
///
/// This holds true for other values that might be ambiguous or just have more
/// complicated representations like enums.
fn serialize_unresolved_minimal<S>(value: &UnresolvedRbxValue, serializer: S) -> Result<S::Ok, S::Error>
fn serialize_unresolved_minimal<S>(unresolved: &UnresolvedRbxValue, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer
{
match value {
UnresolvedRbxValue::Ambiguous(_) => value.serialize(serializer),
match unresolved {
UnresolvedRbxValue::Ambiguous(_) => unresolved.serialize(serializer),
UnresolvedRbxValue::Concrete(concrete) => {
match concrete {
RbxValue::Bool { value } => value.serialize(serializer),