Skip to main content

oak_solidity/lsp/formatter/
mod.rs

1#![doc = include_str!("readme.md")]
2/// Solidity code formatter.
3pub struct SolidityFormatter;
4
5impl SolidityFormatter {
6    /// Creates a new Solidity formatter.
7    pub fn new() -> Self {
8        Self
9    }
10
11    /// Formats Solidity source code.
12    pub fn format(&self, source: &str) -> String {
13        source.to_string()
14    }
15}