Skip to content

Commit 0c2244e

Browse files
bors[bot]Veykril
andauthored
41: Remove unnecessary `Into<String>` bound from `From<T>` impl r=Veykril a=Veykril Looks like this was forgotten when the bound got removed from the `new` constructor Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 parents 229f799 + c46ffc9 commit 0c2244e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "smol_str"
3-
version = "0.1.20"
3+
version = "0.1.21"
44
description = "small-string optimized string type with O(1) clone"
55
license = "MIT OR Apache-2.0"
6-
repository = "https://github.com/matklad/smol_str"
6+
repository = "https://github.com/rust-analyzer/smol_str"
77
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
88
edition = "2018"
99

@@ -14,7 +14,7 @@ arbitrary = { version = "1", optional = true }
1414
[dev-dependencies]
1515
proptest = "0.10"
1616
serde_json = "1"
17-
serde = { version = "1", features = [ "derive" ] }
17+
serde = { version = "1", features = [ "derive" ] }
1818

1919
[features]
2020
default = ["std"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ impl<'a> iter::FromIterator<&'a str> for SmolStr {
289289

290290
impl<T> From<T> for SmolStr
291291
where
292-
T: Into<String> + AsRef<str>,
292+
T: AsRef<str>,
293293
{
294294
fn from(text: T) -> Self {
295295
Self::new(text)

0 commit comments

Comments
 (0)