From 69a61adc06fd4ca76b467dd476d0f9c25a854b06 Mon Sep 17 00:00:00 2001 From: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:00:32 +0200 Subject: [PATCH] Fix new clippy warnings --- src/scanner.rs | 4 ---- src/vm.rs | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/scanner.rs b/src/scanner.rs index 1c7c679..1c9aaed 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -1,13 +1,9 @@ //! Defines the tokens and scanner that handles the transforming or the source to tokens. use num_enum::{IntoPrimitive, TryFromPrimitive}; -use shrinkwraprs::Shrinkwrap; use crate::types::Line; -#[derive(Shrinkwrap, PartialEq, Eq, Clone, Copy)] -pub struct TokenLength(pub(super) usize); - /// `Token` types that exist in the generic language. #[derive(IntoPrimitive, TryFromPrimitive, PartialEq, Eq, Clone, Copy, Debug)] #[repr(u8)] diff --git a/src/vm.rs b/src/vm.rs index 614e883..8ca9bd3 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -1918,6 +1918,7 @@ impl VM { /// - The open upvalues /// - The modules /// - The builtins + /// /// Trace all the references from the roots. /// Remove all the unmarked strings from the globals, builtins and heap strings. /// Lastly, delete all the unmarked values from the heap.