Use struct for allocations

This commit is contained in:
Omar Roth
2019-03-29 16:30:02 -05:00
parent 36c0eae7ed
commit 1b78001201
8 changed files with 17 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ class RedditComment
})
end
class RedditLink
struct RedditLink
JSON.mapping({
author: String,
score: Int32,
@@ -41,7 +41,7 @@ class RedditLink
})
end
class RedditMore
struct RedditMore
JSON.mapping({
children: Array(String),
count: Int32,