blob: 32d8659dcbd5d94f6c6fb3e0b79907ab8d5f6fa7 [file] [log] [blame] [edit]
#![warn(clippy::format_push_string)]
#![no_std]
extern crate alloc;
use alloc::format;
use alloc::string::String;
fn foo(string: &mut String) {
use core::fmt::Write;
// TODO: recognize the already imported `fmt::Write`, and don't suggest importing it again
let _ = write!(string, "{:?}", 1234);
//~^ format_push_string
}