Skip to content

Commit f7295f8

Browse files
committed
Fixing
1 parent e1aeb9e commit f7295f8

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/converters.rs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/input_param_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub fn parse_bool_value(value: &str, src: &str) -> Result<bool, HttpFailResult>
127127
}
128128

129129
pub fn parse_into_type<T: FromStr>(value: &str, src: &str) -> Result<T, HttpFailResult> {
130-
let result = value.parse::<T>();
130+
let result = T::from_str(value);
131131
return match result {
132132
Ok(value) => Ok(value),
133133
_ => Err(HttpFailResult::invalid_value_to_parse(format!(

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pub mod converters;
21
pub mod errors;
32
mod http_ctx;
43
mod http_fail_result;

0 commit comments

Comments
 (0)