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:
parent
955cf8fbe2
commit
08e253c297
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue