Skip to content

Commit

Permalink
Format examples with rustfmt 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 19, 2022
1 parent 0000e6e commit c592781
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/dump-syntax/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
//! ...
//! }
use colored::Colorize;
use std::borrow::Cow;
use std::env;
use std::ffi::OsStr;
Expand All @@ -25,7 +26,6 @@ use std::fs;
use std::io::{self, Write};
use std::path::{Path, PathBuf};
use std::process;
use colored::Colorize;

enum Error {
IncorrectUsage,
Expand Down
4 changes: 3 additions & 1 deletion examples/heapsize/heapsize_derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use proc_macro2::TokenStream;
use quote::{quote, quote_spanned};
use syn::spanned::Spanned;
use syn::{parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index};
use syn::{
parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index,
};

#[proc_macro_derive(HeapSize)]
pub fn derive_heap_size(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
Expand Down

0 comments on commit c592781

Please sign in to comment.