Skip to content

Commit 89e3680

Browse files
committed
Use immutable struct where possible
1 parent 7c6d128 commit 89e3680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HDF5.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ end
284284
convert(::Type{hid_t}, attr::HDF5Attribute) = attr.id
285285
show(io::IO, attr::HDF5Attribute) = isvalid(attr) ? print(io, "HDF5 attribute: ", name(attr)) : print(io, "HDF5 attribute (invalid)")
286286

287-
mutable struct HDF5Attributes
287+
struct HDF5Attributes
288288
parent::Union{HDF5File, HDF5Group, HDF5Dataset}
289289
end
290290
attrs(p::Union{HDF5File, HDF5Group, HDF5Dataset}) = HDF5Attributes(p)

0 commit comments

Comments
 (0)