Skip to content

Commit

Permalink
Fix Base.summary
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed May 28, 2024
1 parent 5f5992b commit a196aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tensors/adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ end

# Show
#------
function Base.summary(t::AdjointTensorMap)
return print("AdjointTensorMap(", codomain(t), "", domain(t), ")")
function Base.summary(io::IO, t::AdjointTensorMap)
return print(io, "AdjointTensorMap(", codomain(t), "", domain(t), ")")

Check warning on line 91 in src/tensors/adjoint.jl

View check run for this annotation

Codecov / codecov/patch

src/tensors/adjoint.jl#L90-L91

Added lines #L90 - L91 were not covered by tests
end
function Base.show(io::IO, t::AdjointTensorMap{S}) where {S<:IndexSpace}
if get(io, :compact, false)
Expand Down
4 changes: 2 additions & 2 deletions src/tensors/tensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ end

# Show
#------
function Base.summary(t::TensorMap)
return print("TensorMap(", space(t), ")")
function Base.summary(io::IO, t::TensorMap)
return print(io, "TensorMap(", space(t), ")")
end
function Base.show(io::IO, t::TensorMap{S}) where {S<:IndexSpace}
if get(io, :compact, false)
Expand Down

0 comments on commit a196aa0

Please sign in to comment.