mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 09:44:22 +03:00
Fix clippy warnings
This commit is contained in:
parent
1788bd19d6
commit
018ed06b75
@ -271,7 +271,7 @@ fn status(reader: &mut Reader) -> ParseResult<'static, Status> {
|
||||
Ok(value) => StatusValue::Specific(value),
|
||||
Err(_) => {
|
||||
return Err(Error {
|
||||
pos: start.clone(),
|
||||
pos: start,
|
||||
recoverable: false,
|
||||
inner: ParseError::Status {},
|
||||
})
|
||||
|
@ -235,7 +235,7 @@ fn template_element_string(
|
||||
} else if bracket {
|
||||
bracket = false;
|
||||
value.push('{');
|
||||
encoded.push_str("{");
|
||||
encoded.push('{');
|
||||
value.push(c);
|
||||
encoded.push_str(s.as_str());
|
||||
} else {
|
||||
|
@ -62,7 +62,7 @@ pub fn templatize(encoded_string: EncodedString) -> ParseResult<'static, Vec<Tem
|
||||
state = State::Template {};
|
||||
} else {
|
||||
value.push('{');
|
||||
encoded.push_str("{");
|
||||
encoded.push('{');
|
||||
|
||||
value.push(c);
|
||||
encoded.push_str(&s.clone());
|
||||
@ -98,7 +98,7 @@ pub fn templatize(encoded_string: EncodedString) -> ParseResult<'static, Vec<Tem
|
||||
} else {
|
||||
value.push('}');
|
||||
value.push(c);
|
||||
encoded.push_str("}");
|
||||
encoded.push('}');
|
||||
encoded.push_str(&s.clone());
|
||||
}
|
||||
}
|
||||
@ -109,7 +109,7 @@ pub fn templatize(encoded_string: EncodedString) -> ParseResult<'static, Vec<Tem
|
||||
State::String {} => {}
|
||||
State::FirstOpenBracket {} => {
|
||||
value.push('{');
|
||||
encoded.push_str("{");
|
||||
encoded.push('{');
|
||||
}
|
||||
State::Template {} | State::FirstCloseBracket {} => {
|
||||
return Err(error::Error {
|
||||
|
Loading…
Reference in New Issue
Block a user