Skip to content

Commit

Permalink
Prepare 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Apr 20, 2022
1 parent bd8ea00 commit 396ec46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "castaway"
version = "0.1.2"
version = "0.2.0"
description = "Safe, zero-cost downcasting for limited compile-time specialization."
authors = ["Stephen M. Coakley <me@stephencoakley.com>"]
license = "MIT"
keywords = ["specialization"]
keywords = ["specialization", "specialize", "cast"]
categories = ["no-std", "rust-patterns"]
repository = "https://github.com/sagebind/castaway"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub trait FastToString {
fn fast_to_string(&self) -> String;
}

impl<T: Display + 'static> FastToString for T {
impl<T: Display> FastToString for T {
fn fast_to_string(&self) -> String {
// If `T` is already a string, then take a different code path.
// After monomorphization, this check will be completely optimized
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//! Safe, zero-cost downcasting for limited compile-time specialization.
//!
//! This crate works fully on stable Rust, and also does not require the
//! standard library.
//! standard library. To disable references to the standard library, you must
//! opt-out of the `std` feature using `default-features = false` in your
//! `Cargo.toml` file.
//!
//! Castaway provides the following key macros:
//!
Expand Down

0 comments on commit 396ec46

Please sign in to comment.