From 89e36808fa3ae2cd7ab5e24bcad0701e750b1ff5 Mon Sep 17 00:00:00 2001 From: Justin Willmert Date: Tue, 6 Oct 2020 21:19:50 -0500 Subject: [PATCH] Use immutable struct where possible --- src/HDF5.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HDF5.jl b/src/HDF5.jl index db5877e87..ed07234eb 100644 --- a/src/HDF5.jl +++ b/src/HDF5.jl @@ -284,7 +284,7 @@ end convert(::Type{hid_t}, attr::HDF5Attribute) = attr.id show(io::IO, attr::HDF5Attribute) = isvalid(attr) ? print(io, "HDF5 attribute: ", name(attr)) : print(io, "HDF5 attribute (invalid)") -mutable struct HDF5Attributes +struct HDF5Attributes parent::Union{HDF5File, HDF5Group, HDF5Dataset} end attrs(p::Union{HDF5File, HDF5Group, HDF5Dataset}) = HDF5Attributes(p)