Skip to content

Commit 88510fe

Browse files
committed
Formatting fixes.
1 parent dc6ccb5 commit 88510fe

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

examples/with_decl_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use core::any::Any;
99

10-
use trait_cast::{make_trait_castable_decl, TraitcastableAny, TraitcastableAnyInfra};
10+
use trait_cast::{TraitcastableAny, TraitcastableAnyInfra, make_trait_castable_decl};
1111

1212
struct HybridPet {
1313
name: String,

examples/with_decl_macro_generic_struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use core::{any::type_name, fmt::Display};
66

7-
use trait_cast::{make_trait_castable_decl, TraitcastableAny, TraitcastableAnyInfra};
7+
use trait_cast::{TraitcastableAny, TraitcastableAnyInfra, make_trait_castable_decl};
88

99
struct HybridPet<T: Display> {
1010
name: T,

examples/with_decl_macro_struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use core::any::type_name;
77

8-
use trait_cast::{make_trait_castable_decl, TraitcastableAny, TraitcastableAnyInfra};
8+
use trait_cast::{TraitcastableAny, TraitcastableAnyInfra, make_trait_castable_decl};
99

1010
make_trait_castable_decl! {
1111
HybridPet => (Dog<i32>, Dog<TestStruct<::core::primitive::i32>>, Cat<u128, u32>),

examples/with_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#![cfg_attr(feature = "downcast_unchecked", feature(downcast_unchecked))]
99
#![feature(ptr_metadata)]
1010
use trait_cast::{
11-
make_trait_castable, TraitcastableAny, TraitcastableAnyInfra, TraitcastableAnyInfraExt,
11+
TraitcastableAny, TraitcastableAnyInfra, TraitcastableAnyInfraExt, make_trait_castable,
1212
};
1313

1414
#[make_trait_castable(Dog, Cat)]

examples/with_proc_macro_enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![cfg_attr(feature = "downcast_unchecked", feature(downcast_unchecked))]
44
#![feature(ptr_metadata)]
55

6-
use trait_cast::{make_trait_castable, TraitcastableAny, TraitcastableAnyInfra};
6+
use trait_cast::{TraitcastableAny, TraitcastableAnyInfra, make_trait_castable};
77

88
#[make_trait_castable(Dog, Cat)]
99
enum HybridPet {

src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{make_trait_castable_decl, TraitcastableAny, TraitcastableAnyInfra};
1+
use crate::{TraitcastableAny, TraitcastableAnyInfra, make_trait_castable_decl};
22
use alloc::boxed::Box;
33

44
const fn _test_empty_trait_cast_targets() {

src/trait_cast.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use core::{
2-
any::{type_name, Any, TypeId},
2+
any::{Any, TypeId, type_name},
33
fmt::{self, Debug, Formatter},
44
ptr,
55
ptr::DynMetadata,
@@ -379,9 +379,9 @@ impl<Src: TraitcastableAnyInfra<Target>, Target: Sized + 'static> TraitcastableA
379379

380380
#[cfg(feature = "alloc")]
381381
impl<
382-
Src: TraitcastableAnyInfra<Target> + ?Sized + Send + Sync,
383-
Target: ?Sized + 'static + Send + Sync,
384-
> TraitcastableAnyInfraExt<Target> for Arc<Src>
382+
Src: TraitcastableAnyInfra<Target> + ?Sized + Send + Sync,
383+
Target: ?Sized + 'static + Send + Sync,
384+
> TraitcastableAnyInfraExt<Target> for Arc<Src>
385385
{
386386
type Output = Arc<Target>;
387387

0 commit comments

Comments
 (0)