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 /// This holds true for other values that might be ambiguous or just have more
/// complicated representations like enums. /// 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 where S: Serializer
{ {
match value { match unresolved {
UnresolvedRbxValue::Ambiguous(_) => value.serialize(serializer), UnresolvedRbxValue::Ambiguous(_) => unresolved.serialize(serializer),
UnresolvedRbxValue::Concrete(concrete) => { UnresolvedRbxValue::Concrete(concrete) => {
match concrete { match concrete {
RbxValue::Bool { value } => value.serialize(serializer), RbxValue::Bool { value } => value.serialize(serializer),