mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 02:16:37 +00:00
Bump the version number to 0.5.1. (#2155)
* Bump the version number to 0.5.1. * Fix clippy lints for 1.78. * More clippy fixes.
This commit is contained in:
@ -13,7 +13,7 @@ struct Block {
|
||||
|
||||
impl Block {
|
||||
fn get(&self, key: &str) -> Result<&str> {
|
||||
match self.parameters.get(&key.to_string()) {
|
||||
match self.parameters.get(key) {
|
||||
None => candle::bail!("cannot find {} in {}", key, self.block_type),
|
||||
Some(value) => Ok(value),
|
||||
}
|
||||
@ -28,7 +28,7 @@ pub struct Darknet {
|
||||
|
||||
impl Darknet {
|
||||
fn get(&self, key: &str) -> Result<&str> {
|
||||
match self.parameters.get(&key.to_string()) {
|
||||
match self.parameters.get(key) {
|
||||
None => candle::bail!("cannot find {} in net parameters", key),
|
||||
Some(value) => Ok(value),
|
||||
}
|
||||
|
Reference in New Issue
Block a user