Skip to content

Commit f1429f7

Browse files
tsheinenbodil
authored andcommitted
update arbitrary to 1.1.0
1 parent 3bdc273 commit f1429f7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test = ["std", "arbitrary", "arbitrary/derive"]
3030
[dependencies]
3131
static_assertions = "1.1.0"
3232
serde = { version = "1", optional = true }
33-
arbitrary = { version = "0.4", optional = true }
33+
arbitrary = { version = "1.1.0", optional = true }
3434
proptest = { version = "0.10", optional = true }
3535

3636
[dev-dependencies]

src/arbitrary.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use alloc::{
55
};
66
use arbitrary::{Arbitrary, Result, Unstructured};
77

8-
impl<Mode: SmartStringMode> Arbitrary for SmartString<Mode>
8+
impl<'a, Mode: SmartStringMode> Arbitrary<'a> for SmartString<Mode>
99
where
1010
Mode: 'static,
1111
{
@@ -21,7 +21,7 @@ where
2121
String::size_hint(depth)
2222
}
2323

24-
fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
25-
Box::new(self.to_string().shrink().map(Self::from))
26-
}
24+
// fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
25+
// Box::new(self.to_string().shrink().map(Self::from))
26+
// }
2727
}

0 commit comments

Comments
 (0)