pimpbunny fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use std::sync::atomic::{AtomicU64, Ordering};
|
||||
#[cfg(feature = "debug")]
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
static NEXT_TRACE_ID: AtomicU64 = AtomicU64::new(1);
|
||||
@@ -17,9 +18,6 @@ pub fn emit(module: &str, line: u32, message: String) {
|
||||
eprintln!("[debug][{millis}][{module}:{line}] {message}");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "debug"))]
|
||||
pub fn emit(_module: &str, _line: u32, _message: String) {}
|
||||
|
||||
pub fn preview(value: &str, limit: usize) -> String {
|
||||
if value.len() <= limit {
|
||||
return value.to_string();
|
||||
|
||||
Reference in New Issue
Block a user