Skip to content

Commit

Permalink
use copy rather than ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Nov 14, 2023
1 parent 4b9840b commit 20b0cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokenizers/src/pre_tokenizers/metaspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ impl Metaspace {
self.str_rep = replacement.to_string();
}

pub fn get_prepend_scheme(&self) -> &PrependScheme {
&self.prepend_scheme
pub fn get_prepend_scheme(&self) -> PrependScheme {
self.prepend_scheme
}

pub fn set_prepend_scheme(&mut self, scheme: PrependScheme) {
Expand Down

0 comments on commit 20b0cf4

Please sign in to comment.