mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-12 17:31:02 +00:00
use normal style for comments
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
//!
|
||||
//! The number base constants.
|
||||
//!
|
||||
|
||||
/// The binary number base.
|
||||
pub const BASE_BINARY: u32 = 2;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//!
|
||||
//! The common sizes in bits.
|
||||
//!
|
||||
|
||||
/// The `bool` type bit-length.
|
||||
pub const BIT_LENGTH_BOOLEAN: usize = 1;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//!
|
||||
//! The common sizes in bytes.
|
||||
//!
|
||||
|
||||
/// The byte-length.
|
||||
pub const BYTE_LENGTH_BYTE: usize = 1;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//!
|
||||
//! The EraVM address constants.
|
||||
//!
|
||||
|
||||
/// The corresponding simulation predefined address.
|
||||
pub const ERAVM_ADDRESS_TO_L1: u16 = 0xFFFF;
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
//!
|
||||
//! The EVM version.
|
||||
//!
|
||||
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
///
|
||||
/// The EVM version.
|
||||
///
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub enum EVMVersion {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//!
|
||||
//! The file extensions.
|
||||
//!
|
||||
|
||||
/// The manifest file extension.
|
||||
pub static EXTENSION_MANIFEST: &str = "toml";
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//!
|
||||
//! The compiler common library.
|
||||
//!
|
||||
|
||||
pub(crate) mod base;
|
||||
pub(crate) mod bit_length;
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
//!
|
||||
//! The compiler common utils.
|
||||
//!
|
||||
|
||||
///
|
||||
/// Deserializes a `serde_json` object from slice with the recursion limit disabled.
|
||||
///
|
||||
/// Must be used for all JSON I/O to avoid crashes due to the aforementioned limit.
|
||||
///
|
||||
pub fn deserialize_from_slice<O>(input: &[u8]) -> anyhow::Result<O>
|
||||
where
|
||||
O: serde::de::DeserializeOwned,
|
||||
@@ -18,11 +13,8 @@ where
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
///
|
||||
/// Deserializes a `serde_json` object from string with the recursion limit disabled.
|
||||
///
|
||||
/// Must be used for all JSON I/O to avoid crashes due to the aforementioned limit.
|
||||
///
|
||||
pub fn deserialize_from_str<O>(input: &str) -> anyhow::Result<O>
|
||||
where
|
||||
O: serde::de::DeserializeOwned,
|
||||
|
||||
Reference in New Issue
Block a user