Skip to content

Commit

Permalink
chore!: Remove Debug implementation of dyn Scoper
Browse files Browse the repository at this point in the history
Unused code
  • Loading branch information
alexpovel committed Nov 6, 2023
1 parent 2ec98c1 commit 31ef135
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/scoping/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use crate::scoping::scope::ROScopes;
#[cfg(doc)]
use crate::scoping::{scope::Scope, view::ScopedView};
use std::fmt;

/// Fixes for DOS-style line endings.
pub mod dosfix;
Expand All @@ -28,12 +27,6 @@ pub trait Scoper: Send + Sync {
fn scope<'viewee>(&self, input: &'viewee str) -> ROScopes<'viewee>;
}

impl fmt::Debug for dyn Scoper {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Scoper").finish()
}
}

impl<T> Scoper for T
where
T: Fn(&str) -> ROScopes + Send + Sync,
Expand Down

0 comments on commit 31ef135

Please sign in to comment.