diff options
Diffstat (limited to 'src/student.rs')
-rw-r--r-- | src/student.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/student.rs b/src/student.rs index b6d99cd..5af512e 100644 --- a/src/student.rs +++ b/src/student.rs | |||
@@ -26,7 +26,13 @@ pub struct User { | |||
26 | 26 | ||
27 | impl fmt::Display for User { | 27 | impl fmt::Display for User { |
28 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | 28 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
29 | write!(f, "{}", self.user_id) | 29 | write!(f, "{}", self.user_id.get_id()) |
30 | } | ||
31 | } | ||
32 | |||
33 | impl fmt::Display for UserAtRest { | ||
34 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
35 | write!(f, "{}", self.user) | ||
30 | } | 36 | } |
31 | } | 37 | } |
32 | 38 | ||