1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-23 10:19:56 +00:00

Use collect

This commit is contained in:
Ciarán O'Mara 2020-03-21 12:46:35 +11:00
parent 955cf8fbe2
commit 08e253c297
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ Create a SAM metainfo from `str`.
""" """
function MetaInfo(str::AbstractString) function MetaInfo(str::AbstractString)
return MetaInfo(Vector{UInt8}(str)) return MetaInfo(collect(UInt8, str))
end end
""" """

View file

@ -71,7 +71,7 @@ function Record(str::AbstractString)
end end
function Base.convert(::Type{Record}, str::AbstractString) function Base.convert(::Type{Record}, str::AbstractString)
return Record(Vector{UInt8}(str)) return Record(collect(UInt8, str))
end end
function Base.show(io::IO, record::Record) function Base.show(io::IO, record::Record)