difftreelog
style fix clippy warnings
in: master
3 files changed
bindings/jsonnet/src/native.rsdiffbeforeafterbothno syntactic changes
crates/jrsonnet-evaluator/src/obj.rsdiffbeforeafterboth28 use jrsonnet_gcmodule::Trace;28 use jrsonnet_gcmodule::Trace;292930 #[derive(Clone, Copy, Default, Debug, Trace)]30 #[derive(Clone, Copy, Default, Debug, Trace)]31 pub struct FieldIndex;31 pub struct FieldIndex(());32 impl FieldIndex {32 impl FieldIndex {33 pub const fn next(self) -> Self {33 pub const fn next(self) -> Self {34 Self34 Self(())35 }35 }36 }36 }373738 #[derive(Clone, Copy, Default, Debug, Trace)]38 #[derive(Clone, Copy, Default, Debug, Trace)]39 pub struct SuperDepth;39 pub struct SuperDepth(());40 impl SuperDepth {40 impl SuperDepth {41 pub const fn deeper(self) -> Self {41 pub const fn deeper(self) -> Self {42 Self42 Self(())43 }43 }44 }44 }454546 #[derive(Clone, Copy)]46 #[derive(Clone, Copy)]47 pub struct FieldSortKey;47 pub struct FieldSortKey(());48 impl FieldSortKey {48 impl FieldSortKey {49 pub const fn new(_: SuperDepth, _: FieldIndex) -> Self {49 pub const fn new(_: SuperDepth, _: FieldIndex) -> Self {50 Self50 Self(())51 }51 }52 }52 }53}53}crates/jrsonnet-interner/src/lib.rsdiffbeforeafterboth797980impl Drop for IStr {80impl Drop for IStr {81 fn drop(&mut self) {81 fn drop(&mut self) {82 maybe_unpool(&self.0)82 maybe_unpool(&self.0);83 }83 }84}84}8585151151152impl Drop for IBytes {152impl Drop for IBytes {153 fn drop(&mut self) {153 fn drop(&mut self) {154 maybe_unpool(&self.0)154 maybe_unpool(&self.0);155 }155 }156}156}157157176 });176 });177 }177 }178 // First reference - current object, second - POOL178 // First reference - current object, second - POOL179 if Inner::strong_count(&inner) <= 2 {179 if Inner::strong_count(inner) <= 2 {180 unpool(&inner);180 unpool(inner);181 }181 }182}182}183183