Skip to content

Commit bb67466

Browse files
committed
Rename crate to trait-variant
1 parent ce9f579 commit bb67466

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Utilities for working with impl traits in Rust.
77
`make_variant` generates a specialized version of a base trait that uses `async fn` and/or `-> impl Trait`. For example, if you want a `Send`able version of your trait, you'd write:
88

99
```rust
10-
#[trait_transformer::make_variant(SendIntFactory: Send)]
10+
#[trait_variant::make_variant(SendIntFactory: Send)]
1111
trait IntFactory {
1212
async fn make(&self) -> i32;
1313
// ..or..

trait_transformer/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# except according to those terms.
88

99
[package]
10-
name = "trait_transformer"
11-
version = "0.1.0"
10+
name = "trait-variant"
11+
version = "0.0.0"
1212
edition = "2021"
1313
license.workspace = true
1414

trait_transformer/examples/trait_transformer.rs

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

1212
use std::iter;
1313

14-
use trait_transformer::trait_transformer;
14+
use trait_variant::trait_transformer;
1515

1616
#[trait_transformer(SendIntFactory: Send)]
1717
trait IntFactory {

trait_transformer/examples/variant.rs

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

99
use std::future::Future;
1010

11-
use trait_transformer::make_variant;
11+
use trait_variant::make_variant;
1212

1313
#[make_variant(SendIntFactory: Send)]
1414
trait IntFactory {

0 commit comments

Comments
 (0)