mirror of
https://github.com/fluencelabs/aquavm
synced 2025-04-24 14:52:15 +00:00
fix(value): remove unused code (#850)
* fix(value): remove unused code It breaks compilation.
This commit is contained in:
parent
b684ca0b82
commit
58a5f3046a
@ -48,7 +48,6 @@
|
||||
*/
|
||||
|
||||
use super::JValue;
|
||||
use core::fmt::{self, Display};
|
||||
use core::ops;
|
||||
use std::string::String;
|
||||
|
||||
@ -113,22 +112,6 @@ mod private {
|
||||
impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {}
|
||||
}
|
||||
|
||||
/// Used in panic messages.
|
||||
struct Type<'a>(&'a JValue);
|
||||
|
||||
impl<'a> Display for Type<'a> {
|
||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||
match *self.0 {
|
||||
JValue::Null => formatter.write_str("null"),
|
||||
JValue::Bool(_) => formatter.write_str("boolean"),
|
||||
JValue::Number(_) => formatter.write_str("number"),
|
||||
JValue::String(_) => formatter.write_str("string"),
|
||||
JValue::Array(_) => formatter.write_str("array"),
|
||||
JValue::Object(_) => formatter.write_str("object"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The usual semantics of Index is to panic on invalid indexing.
|
||||
//
|
||||
// That said, the usual semantics are for things like Vec and BTreeMap which
|
||||
|
@ -28,6 +28,8 @@
|
||||
unused_unsafe,
|
||||
unreachable_patterns
|
||||
)]
|
||||
// risc0 feature flag is commented out, but the code remains for future experiments
|
||||
#![allow(unexpected_cfgs)]
|
||||
|
||||
mod beautify;
|
||||
mod data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user