This commit is contained in:
Windel Bouwman committed 2018-08-20 22:06:01 +02:00
1 parent 20d73d7478
commit 17a952dbf1
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -411,7 +411,9 @@ Number: ast::Number = {
};
String: String = {
<s:string> => s,
<s:string+> => {
s.join("")
},
};
Identifier: String = <s:name> => s;
+1 -1
View File
@@ -770,7 +770,7 @@ impl PartialEq for PyObject {
PyObjectKind::Integer { value: ref v1i },
PyObjectKind::Integer { value: ref v2i },
) => v2i == v1i,
( PyObjectKind::Float { value: ref v1i }, PyObjectKind::Float { value: ref v2i }) => {
(PyObjectKind::Float { value: ref v1i }, PyObjectKind::Float { value: ref v2i }) => {
v2i == v1i
}
(PyObjectKind::String { value: ref v1i }, PyObjectKind::String { value: ref v2i }) => {