rune icon indicating copy to clipboard operation
rune copied to clipboard

Create a public function for source formatting

Open cocuh opened this issue 1 year ago • 1 comments

Alternative solution for #652.

In most cases, users don't need FormattingError enum itself, and just serializing the error message makes things easier in later code chagnes I believe.

cocuh avatar Feb 20 '24 15:02 cocuh

You don't have to use anyhow to hide the error enum. A public struct with a private field implementing std::error::Error would achieve the same result without the feature test.

udoprog avatar Feb 20 '24 19:02 udoprog

Woops, the auto merged triggered prior to building 🤔. No big deal, I'll fix it when I get around to it.

Thanks!

udoprog avatar Feb 22 '24 11:02 udoprog

Ooop, it seems my commit makes build failure. Let me create PR for the fix.

cocuh avatar Feb 22 '24 11:02 cocuh