difftreelog
style accidental dbg push
in: master
2 files changed
crates/jrsonnet-evaluator/src/obj.rsdiffbeforeafterboth--- a/crates/jrsonnet-evaluator/src/obj.rs
+++ b/crates/jrsonnet-evaluator/src/obj.rs
@@ -1,9 +1,13 @@
use std::{
- any::Any, cell::{Cell, RefCell}, collections::hash_map::Entry, fmt::{self, Debug}, hash::{Hash, Hasher}
+ any::Any,
+ cell::{Cell, RefCell},
+ collections::hash_map::Entry,
+ fmt::{self, Debug},
+ hash::{Hash, Hasher},
};
+use educe::Educe;
use jrsonnet_gcmodule::{cc_dyn, Cc, Trace, Weak};
-use educe::Educe;
use jrsonnet_interner::IStr;
use jrsonnet_parser::{Span, Visibility};
use rustc_hash::{FxHashMap, FxHashSet};
@@ -14,8 +18,7 @@
error::{suggest_object_fields, ErrorKind::*},
function::{CallLocation, FuncVal},
gc::WithCapacityExt as _,
- in_frame,
- identity_hash,
+ identity_hash, in_frame,
operator::evaluate_add_op,
val::ArrValue,
CcUnbound, MaybeUnbound, Result, Thunk, Unbound, Val,
@@ -659,7 +662,6 @@
fn fields_visibility(&self) -> FxHashMap<IStr, (bool, FieldSortKey)> {
let mut out = FxHashMap::default();
self.enum_fields(&mut |depth, index, name, visibility| {
- dbg!(&name, visibility);
let new_sort_key = FieldSortKey::new(depth, index);
let entry = out.entry(name);
let (visible, _) = entry.or_insert((true, new_sort_key));
@@ -709,8 +711,8 @@
return fields;
}
- let mut fields: Vec<_> = dbg!(self
- .fields_visibility())
+ let mut fields: Vec<_> = self
+ .fields_visibility()
.into_iter()
.filter(|(_, (visible, _))| include_hidden || *visible)
.map(|(k, _)| k)
crates/jrsonnet-evaluator/src/val.rsdiffbeforeafterboth414 self.0414 self.0415 }415 }416 pub(crate) fn truncate_for_bitwise(&self) -> Result<i64> {416 pub(crate) fn truncate_for_bitwise(&self) -> Result<i64> {417 if self.0 < MIN_SAFE_INTEGER || self.0 > dbg!(MAX_SAFE_INTEGER) {417 if self.0 < MIN_SAFE_INTEGER || self.0 > MAX_SAFE_INTEGER {418 bail!("numberic value outside of safe integer range for bitwise operation");418 bail!("numberic value outside of safe integer range for bitwise operation");419 }419 }420 Ok(self.0 as i64)420 Ok(self.0 as i64)