From 0696a13a96306e4546e33eb32b0df958640a40f9 Mon Sep 17 00:00:00 2001 From: tyranron Date: Fri, 30 Aug 2024 03:25:52 +0300 Subject: [PATCH] Fix doc tests, vol.4 --- impl/doc/from_str.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/impl/doc/from_str.md b/impl/doc/from_str.md index bf9d1e73..8ffd78d3 100644 --- a/impl/doc/from_str.md +++ b/impl/doc/from_str.md @@ -44,8 +44,8 @@ Code like this will be generated: ```rust # struct MyInt(i32); -impl derive_more::FromStr for MyInt { - type Err = ::Err; +impl derive_more::core::str::FromStr for MyInt { + type Err = ::Err; fn from_str(src: &str) -> Result { return Ok(MyInt(i32::from_str(src)?)); } @@ -74,8 +74,8 @@ Code like this will be generated: # struct Point1D { # x: i32, # } -impl derive_more::FromStr for Point1D { - type Err = ::Err; +impl derive_more::core::str::FromStr for Point1D { + type Err = ::Err; fn from_str(src: &str) -> Result { return Ok(Point1D { x: i32::from_str(src)?, @@ -121,8 +121,8 @@ Code like this will be generated: # Baz, # } # -impl derive_more::FromStr for EnumNoFields { - type Err = derive_more::FromStrError; +impl derive_more::core::str::FromStr for EnumNoFields { + type Err = derive_more::core::str::FromStrError; fn from_str(src: &str) -> Result { Ok(match src.to_lowercase().as_str() { "foo" => EnumNoFields::Foo,