clean up imports
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::{HashMap, HashSet};
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::process::Command;
|
use std::process::{Command, ExitStatus};
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::{collections::HashSet, process::ExitStatus};
|
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
use std::{fmt::Write, process::ExitStatus};
|
use std::fmt::Write;
|
||||||
|
use std::process::ExitStatus;
|
||||||
|
|
||||||
use anyhow::{bail, ensure, Context, Result};
|
use anyhow::{bail, ensure, Context, Result};
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
use std::collections::HashSet;
|
||||||
|
use std::fmt::Display;
|
||||||
use std::fs::{read_to_string, File};
|
use std::fs::{read_to_string, File};
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::{collections::HashSet, fmt::Display};
|
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
use std::{
|
use std::collections::HashSet;
|
||||||
collections::HashSet,
|
use std::fmt::{Display, Write};
|
||||||
fmt::{Display, Write},
|
use std::hash::Hash;
|
||||||
hash::Hash,
|
use std::iter::Peekable;
|
||||||
iter::Peekable,
|
|
||||||
};
|
|
||||||
|
|
||||||
use anyhow::{ensure, Context, Result};
|
use anyhow::{ensure, Context, Result};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
use std::{env, path::PathBuf};
|
use std::env;
|
||||||
|
use std::path::PathBuf;
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use syn::DeriveInput;
|
use syn::{DeriveInput, __private::TokenStream2};
|
||||||
use syn::__private::TokenStream2;
|
|
||||||
|
|
||||||
pub fn action(input: TokenStream) -> TokenStream {
|
pub fn action(input: TokenStream) -> TokenStream {
|
||||||
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
|
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use syn::DeriveInput;
|
use syn::{DeriveInput, __private::TokenStream2};
|
||||||
use syn::__private::TokenStream2;
|
|
||||||
|
|
||||||
pub fn register(input: TokenStream) -> TokenStream {
|
pub fn register(input: TokenStream) -> TokenStream {
|
||||||
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
|
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
|
||||||
|
|||||||
Reference in New Issue
Block a user