Skip to main content

format_path

Function format_path 

Source
pub async fn format_path(path: &Path) -> Result<(), Error>
Expand description

Format code or supported text files at a specific path.

§Arguments

  • &Path - Path to file or directory to format

§Returns

  • Result<(), io::Error> - Success or error