git.delta.rocks / jrsonnet / refs/commits / 6344af1d0323

difftreelog

style fix clippy warnings

Yaroslav Bolyukin2023-06-14parent: #3ea3f30.patch.diff
in: master

3 files changed

modifiedbindings/jsonnet/src/native.rsdiffbeforeafterboth

no syntactic changes

modifiedcrates/jrsonnet-evaluator/src/obj.rsdiffbeforeafterboth
28 use jrsonnet_gcmodule::Trace;28 use jrsonnet_gcmodule::Trace;
2929
30 #[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 }
3737
38 #[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 }
4545
46 #[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}
modifiedcrates/jrsonnet-interner/src/lib.rsdiffbeforeafterboth
7979
80impl 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}
8585
151151
152impl 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}
157157
176 });176 });
177 }177 }
178 // First reference - current object, second - POOL178 // First reference - current object, second - POOL
179 if Inner::strong_count(&inner) <= 2 {179 if Inner::strong_count(inner) <= 2 {
180 unpool(&inner);180 unpool(inner);
181 }181 }
182}182}
183183