Skip to content

Commit

Permalink
autofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 5, 2024
1 parent 4a5936d commit 45c553e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 35 deletions.
66 changes: 32 additions & 34 deletions src/features/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,45 +331,43 @@ pub mod tests {
use std::thread;
use std::time::Duration;


#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn test_console() {
eprintln!("> test_console");
/*
let loglevel = log::LevelFilter::Info;
tracing_log::LogTracer::builder()
//.ignore_crate("swc_ecma_codegen")
//.ignore_crate("swc_ecma_transforms_base")
.with_max_level(loglevel)
.init()
.expect("could not init LogTracer");
// Graylog address
let address = format!("{}:{}", "192.168.10.43", 12201);
// Start tracing
let mut conn_handle = tracing_gelf::Logger::builder()
.init_udp(address)
.expect("could not init udp con for logger");
// Spawn background task
// Any futures executor can be used
println!("> init");
tokio::runtime::Handle::current().spawn(async move {
//
conn_handle.connect().await
//
});
println!("< init");
log::error!("Logger initialized");
tracing::error!("via tracing");
*/
/*
let loglevel = log::LevelFilter::Info;
tracing_log::LogTracer::builder()
//.ignore_crate("swc_ecma_codegen")
//.ignore_crate("swc_ecma_transforms_base")
.with_max_level(loglevel)
.init()
.expect("could not init LogTracer");
// Graylog address
let address = format!("{}:{}", "192.168.10.43", 12201);
// Start tracing
let mut conn_handle = tracing_gelf::Logger::builder()
.init_udp(address)
.expect("could not init udp con for logger");
// Spawn background task
// Any futures executor can be used
println!("> init");
tokio::runtime::Handle::current().spawn(async move {
//
conn_handle.connect().await
//
});
println!("< init");
log::error!("Logger initialized");
tracing::error!("via tracing");
*/
// Send log using a macro defined in the create log


log::info!("> test_console");
let rt = QuickJsRuntimeBuilder::new().build();
rt.eval_sync(
Expand Down
2 changes: 1 addition & 1 deletion src/quickjs_utils/typedarrays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub unsafe fn detach_array_buffer_buffer(
})
} else {
#[cfg(target_pointer_width = "64")]
let mut len:usize = 0;
let mut len: usize = 0;
#[cfg(target_pointer_width = "32")]
let mut len: u32 = 0;

Expand Down

0 comments on commit 45c553e

Please sign in to comment.