mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
refactor(ast): shorten code (#7659)
Pure refactor. Shorten code - `Vec` instead of `std::vec::Vec`.
This commit is contained in:
parent
746c8aaa4f
commit
8993e893a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue