Skip to content

Commit

Permalink
Removed Copy from SyntaxConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 26, 2023
1 parent 4619e9a commit e137db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minijinja/src/compiler/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub use crate::custom_syntax::SyntaxConfig;

/// Non configurable syntax config
#[cfg(not(feature = "custom_syntax"))]
#[derive(Debug, Copy, Clone, Default)]
#[derive(Debug, Clone, Default)]
pub struct SyntaxConfig;

enum LexerState {
Expand Down Expand Up @@ -80,7 +80,7 @@ fn match_start_marker(rest: &str, syntax_config: &SyntaxConfig) -> Option<(Start
#[cfg(not(feature = "custom_syntax"))]
{
let _ = syntax_config;
return match_start_marker_default(rest);
match_start_marker_default(rest)
}

#[cfg(feature = "custom_syntax")]
Expand Down

0 comments on commit e137db7

Please sign in to comment.