diff --git a/src/FileFormats/MOF/MOF.jl b/src/FileFormats/MOF/MOF.jl index a3e621dae4..2b51c54567 100644 --- a/src/FileFormats/MOF/MOF.jl +++ b/src/FileFormats/MOF/MOF.jl @@ -148,7 +148,7 @@ function Options(; ) end -get_options(m::Model) = get(m.model.ext, :MOF_OPTIONS, Options()) +get_options(m::Model) = get(m.model.ext, :MOF_OPTIONS, Options())::Options """ Model(; diff --git a/test/FileFormats/MOF/test_MOF.jl b/test/FileFormats/MOF/test_MOF.jl index 1c7422ec1e..4303e0f6cc 100644 --- a/test/FileFormats/MOF/test_MOF.jl +++ b/test/FileFormats/MOF/test_MOF.jl @@ -332,7 +332,7 @@ function test_nonempty_model() model, joinpath(@__DIR__, "empty_model.mof.json"), ) - options = MOF.get_options(model) + options = @inferred MOF.get_options(model) @test options.warn MOI.empty!(model) @test MOI.is_empty(model)