make functions static where possible

This commit is contained in:
Eitan Adler
2016-09-17 23:08:31 -07:00
parent 3545785041
commit 733fe1d25c
2 changed files with 22 additions and 11 deletions

View File

@@ -209,7 +209,8 @@ class RustSlicePrinter:
def __init__(self, val):
self.__val = val
def display_hint(self):
@staticmethod
def display_hint():
return "array"
def to_string(self):
@@ -240,7 +241,8 @@ class RustStdVecPrinter:
def __init__(self, val):
self.__val = val
def display_hint(self):
@staticmethod
def display_hint():
return "array"
def to_string(self):