Update WhisperContextParameters to &mut to avoid borrow issues
This commit is contained in:
parent
ef7d037d75
commit
a07e27ed42
1 changed files with 1 additions and 1 deletions
|
|
@ -551,7 +551,7 @@ impl WhisperContextParameters {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self::default()
|
Self::default()
|
||||||
}
|
}
|
||||||
pub fn use_gpu(mut self, use_gpu: bool) -> Self {
|
pub fn use_gpu(&mut self, use_gpu: bool) -> &mut Self {
|
||||||
self.use_gpu = use_gpu;
|
self.use_gpu = use_gpu;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue