mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-20 16:44:12 +01:00
chore: clippy helps out
This commit is contained in:
@@ -441,11 +441,9 @@ pub fn parse_stream(json_string: &str) -> Result<Value, String> {
|
||||
current_status.clone(),
|
||||
current_char.to_string()
|
||||
);
|
||||
if let Err(e) = add_char_into_object(&mut out, &mut current_status, current_char) {
|
||||
return Err(e);
|
||||
}
|
||||
add_char_into_object(&mut out, &mut current_status, current_char)?
|
||||
}
|
||||
return Ok(out);
|
||||
Ok(out)
|
||||
}
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
@@ -464,6 +462,11 @@ pub struct JsonStreamParser {
|
||||
object: Value,
|
||||
current_status: ObjectStatus,
|
||||
}
|
||||
impl Default for JsonStreamParser {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl JsonStreamParser {
|
||||
pub fn new() -> JsonStreamParser {
|
||||
|
||||
Reference in New Issue
Block a user