From 08e253c297a82ecfdb598c01b7e037c3657f3392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Sat, 21 Mar 2020 12:46:35 +1100 Subject: [PATCH] Use collect --- src/sam/metainfo.jl | 2 +- src/sam/record.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sam/metainfo.jl b/src/sam/metainfo.jl index f40e6ae..0c74a90 100644 --- a/src/sam/metainfo.jl +++ b/src/sam/metainfo.jl @@ -39,7 +39,7 @@ Create a SAM metainfo from `str`. """ function MetaInfo(str::AbstractString) - return MetaInfo(Vector{UInt8}(str)) + return MetaInfo(collect(UInt8, str)) end """ diff --git a/src/sam/record.jl b/src/sam/record.jl index a61e0df..1f6d675 100644 --- a/src/sam/record.jl +++ b/src/sam/record.jl @@ -71,7 +71,7 @@ function Record(str::AbstractString) end function Base.convert(::Type{Record}, str::AbstractString) - return Record(Vector{UInt8}(str)) + return Record(collect(UInt8, str)) end function Base.show(io::IO, record::Record)