File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub(crate) fn parse(
15
15
16
16
fn from_toml_value ( uri : Option < & String > , value : & toml:: Value ) -> Value {
17
17
match * value {
18
- toml:: Value :: String ( ref value) => Value :: new ( uri, value. to_string ( ) ) ,
18
+ toml:: Value :: String ( ref value) => Value :: new ( uri, value. clone ( ) ) ,
19
19
toml:: Value :: Float ( value) => Value :: new ( uri, value) ,
20
20
toml:: Value :: Integer ( value) => Value :: new ( uri, value) ,
21
21
toml:: Value :: Boolean ( value) => Value :: new ( uri, value) ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ fn from_yaml_value(
37
37
value
38
38
. parse :: < f64 > ( )
39
39
. map_err ( |_| {
40
- Box :: new ( FloatParsingError ( value. to_string ( ) ) ) as Box < ( dyn Error + Send + Sync ) >
40
+ Box :: new ( FloatParsingError ( value. clone ( ) ) ) as Box < ( dyn Error + Send + Sync ) >
41
41
} )
42
42
. map ( ValueKind :: Float )
43
43
. map ( |f| Value :: new ( uri, f) )
You can’t perform that action at this time.
0 commit comments