refactor(ast): shorten code (#7659)

Pure refactor. Shorten code - `Vec` instead of `std::vec::Vec`.
This commit is contained in:
overlookmotel 2024-12-05 01:16:16 +00:00
parent 746c8aaa4f
commit 8993e893a0

View file

@ -149,8 +149,8 @@ impl Program<'_> {
}
/// # Panics
pub fn serializer(&self) -> serde_json::Serializer<std::vec::Vec<u8>, EcmaFormatter> {
let buf = std::vec::Vec::new();
pub fn serializer(&self) -> serde_json::Serializer<Vec<u8>, EcmaFormatter> {
let buf = Vec::new();
let mut ser = serde_json::Serializer::with_formatter(buf, EcmaFormatter);
self.serialize(&mut ser).unwrap();
ser