Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Jan 8, 2025
1 parent 9e0b495 commit 146a2c7
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
Expand Down
7 changes: 2 additions & 5 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
max_width = 100
reorder_imports = true

# nightly only

# group_imports = "StdExternalCrate"
# imports_granularity = "Module"
group_imports = "StdExternalCrate"
imports_granularity = "Module"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use alloc::collections::BTreeMap;

use alloc::string::{String, ToString};

use syn::parse::{Parse, ParseStream};
use syn::punctuated::Punctuated;
use syn::token::{Colon, Comma};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use alloc::string::ToString;

use proc_macro2::TokenStream;
use quote::quote;
use syn::{parse_quote, Ident, ItemImpl, ItemTrait};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use alloc::vec::Vec;

use quote::ToTokens;
use syn::spanned::Spanned;
use syn::{parse_quote, Error, FnArg, Ident, ItemTrait, ReturnType, TraitItem, Type};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use alloc::string::ToString;

use proc_macro2::TokenStream;
use quote::quote;
use syn::{parse_quote, ItemImpl, ItemTrait};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use alloc::format;
use alloc::vec::Vec;

use proc_macro2::TokenStream;
use quote::quote;
use syn::parse::{Parse, ParseStream};
Expand Down
2 changes: 1 addition & 1 deletion crates/cgp-error-anyhow/src/impls/debug_error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use alloc::format;
use core::fmt::Debug;

use alloc::format;
use anyhow::{anyhow, Error};
use cgp_core::error::{ErrorRaiser, ErrorWrapper};
use cgp_core::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion crates/cgp-error-eyre/src/impls/debug_error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use alloc::format;
use core::fmt::Debug;

use alloc::format;
use cgp_core::error::{ErrorRaiser, ErrorWrapper};
use cgp_core::prelude::*;
use eyre::{eyre, Error};
Expand Down
3 changes: 1 addition & 2 deletions crates/cgp-error-std/src/types/wrap.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use alloc::string::String;
use core::error::Error as StdError;
use core::fmt::{Debug, Display};

use alloc::string::String;

use crate::Error;

pub struct WrapError {
Expand Down

0 comments on commit 146a2c7

Please sign in to comment.