Skip to content

Commit ee649f1

Browse files
feat: add show method for Clocks.Type
1 parent f6ad425 commit ee649f1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/SciMLBase.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import ADTypes: ADTypes, AbstractADType
2525
import Accessors: @set, @reset, @delete, @insert
2626
using Moshi.Data: @data
2727
using Moshi.Match: @match
28+
import Moshi.Derive: @derive
2829
import StaticArraysCore
2930
import Adapt: adapt_structure, adapt
3031

src/clock.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ abstract type AbstractClock end
1212
end
1313
end
1414

15+
@derive Clocks[Show]
16+
1517
# for backwards compatibility
1618
const TimeDomain = Clocks.Type
1719
using .Clocks: ContinuousClock, PeriodicClock, SolverStepClock, EventClock

0 commit comments

Comments
 (0)