diff --git a/csharp_mod/Marshal.cs b/csharp_mod/Marshal.cs index dc80d9d..e0b54ab 100644 --- a/csharp_mod/Marshal.cs +++ b/csharp_mod/Marshal.cs @@ -26,7 +26,7 @@ public static class Marshal try { _libraryHandle = LoadLibrary(ExtractNativeLibrary(Ffi.RustLib)); - CodeFormatters.RegisterFormatter("Slang", () => new SlangFormatter(), true); + CodeFormatters.RegisterFormatter("Slang", typeof(SlangFormatter), true); return true; } catch (Exception ex)