deploy: 5332db0a4b
This commit is contained in:
parent
07238c4cde
commit
679692ed19
4 changed files with 8 additions and 14 deletions
|
@ -1994,10 +1994,7 @@ where
|
||||||
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<'_, S>
|
fn parse_token<S: ScalarValue>(value: ScalarToken<'_>) -> ParseScalarResult<S> {
|
||||||
where
|
|
||||||
S: ScalarValue
|
|
||||||
{
|
|
||||||
<String as ParseScalarValue<S>>::from_str(value)
|
<String as ParseScalarValue<S>>::from_str(value)
|
||||||
.or_else(|_| <i32 as ParseScalarValue<S>>::from_str(value))
|
.or_else(|_| <i32 as ParseScalarValue<S>>::from_str(value))
|
||||||
}
|
}
|
||||||
|
@ -2043,7 +2040,7 @@ impl StringOrInt {
|
||||||
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<'_, S>
|
fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<S>
|
||||||
where
|
where
|
||||||
S: ScalarValue,
|
S: ScalarValue,
|
||||||
{
|
{
|
||||||
|
@ -2090,7 +2087,7 @@ mod string_or_int {
|
||||||
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<'_, S>
|
pub(super) fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<S>
|
||||||
where
|
where
|
||||||
S: ScalarValue,
|
S: ScalarValue,
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -310,10 +310,7 @@ where
|
||||||
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<'_, S>
|
fn parse_token<S: ScalarValue>(value: ScalarToken<'_>) -> ParseScalarResult<S> {
|
||||||
where
|
|
||||||
S: ScalarValue
|
|
||||||
{
|
|
||||||
<String as ParseScalarValue<S>>::from_str(value)
|
<String as ParseScalarValue<S>>::from_str(value)
|
||||||
.or_else(|_| <i32 as ParseScalarValue<S>>::from_str(value))
|
.or_else(|_| <i32 as ParseScalarValue<S>>::from_str(value))
|
||||||
}
|
}
|
||||||
|
@ -359,7 +356,7 @@ impl StringOrInt {
|
||||||
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<'_, S>
|
fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<S>
|
||||||
where
|
where
|
||||||
S: ScalarValue,
|
S: ScalarValue,
|
||||||
{
|
{
|
||||||
|
@ -406,7 +403,7 @@ mod string_or_int {
|
||||||
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
.ok_or_else(|| format!("Expected `String` or `Int`, found: {}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<'_, S>
|
pub(super) fn parse_token<S>(value: ScalarToken<'_>) -> ParseScalarResult<S>
|
||||||
where
|
where
|
||||||
S: ScalarValue,
|
S: ScalarValue,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue