prettier-plugin-rust icon indicating copy to clipboard operation
prettier-plugin-rust copied to clipboard

Prettier Rust is an opinionated code formatter that autocorrects bad syntax.

Results 12 prettier-plugin-rust issues
Sort by recently updated
recently updated
newest added

### Input code ```rust 1e0; ``` ### Output code ```rust 1; ``` ### Additional context Expected `1.0;`

# Roadmap 1.0.0 This is the full list of features the project is missing before a full release. Open to suggestions. Contributions are most welcome. 🤗 - ## Formatting -...

### Input code ```rust N/A ``` ### Output code ```rust N/A ``` ### Additional context Sorry ignoring the issue template.. Hi, I am a maintainer at Prettier. The Prettier team...

### Input code ```rust use std::collections::VecDeque; struct MinStack { stack: VecDeque, min_stack: VecDeque, } /** * `&self` means the method takes an immutable reference. * If you need a mutable...

### Input code ```rust // Default rustfmt let data = fs::read_to_string(&json_path).unwrap_or_else(|_| panic!("Unable to read {:?}", json_path)); ``` ### Output code ```rust // prettier-plugin-rust let data = fs ::read_to_string(&json_path) .unwrap_or_else(|_| panic!("Unable...

### Input code ```rust #[derive(Error, Debug)] enum Message { #[error("married order hunt twenty group lack known")] Quit, #[error("square sit center whether important")] Move { x: i32, y: i32 }, #[error("thread...

### Input code ```rust type a = Map>, Iter, Iter, >, Iter, >, impl Fn(((((&mut f64, &f64), &f64), &f64), &bool)) -> (&mut f64, &bool, &bool, &bool, &bool), >; ``` ###...

### Input code ```rust import * as prettier from "prettier"; import * as rustPlugin from "prettier-plugin-rust"; export async function formatMove(content: string, prettierConfigPath?: string): Promise { let config; if (prettierConfigPath) {...

Codium is an open source binary of VS code without telemetry

I am using vite in react.js and in my async function I am trying to dynamically import the package. ```rust async function formatCode(code) { const { format } = await...