Skip to content

Commit

Permalink
Return written size in StringEncoder#write
Browse files Browse the repository at this point in the history
This is required for Crystal 0.35.0 (see
crystal-lang/crystal#9233)
  • Loading branch information
straight-shoota committed Jun 9, 2020
1 parent 4fb8df7 commit a81f245
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/loader/string_encoder.cr
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ class BakedFileSystem::StringEncoder < IO
byte.to_s(16, @io, upcase: true)
end
end

slice.size.to_i64
end
end

0 comments on commit a81f245

Please sign in to comment.