Skip to content

Commit

Permalink
chore(clippy): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Feb 9, 2024
1 parent b2c7b8a commit b8b5603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/project_util/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ trait NamingStrategy {
fn new_source_file_name(&mut self, id: usize) -> String;

/// Return a new name for the given source file id
#[allow(unused)]
fn new_lib_file_name(&mut self, id: usize) -> String;

/// Return a new name for the given lib id
Expand All @@ -388,9 +389,8 @@ trait NamingStrategy {

/// A primitive naming that simply uses ids to create unique names
#[derive(Debug, Clone, Copy, Default)]
pub struct SimpleNamingStrategy {
_priv: (),
}
#[non_exhaustive]
pub struct SimpleNamingStrategy;

impl NamingStrategy for SimpleNamingStrategy {
fn new_source_file_name(&mut self, id: usize) -> String {
Expand Down

0 comments on commit b8b5603

Please sign in to comment.