Skip to content

Commit

Permalink
Fix new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Aug 5, 2024
1 parent 4ebb747 commit 69a61ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/scanner.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
1 change: 1 addition & 0 deletions src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 69a61ad

Please sign in to comment.