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:
Laurent Mazare
2024-05-03 11:17:05 +02:00
committed by GitHub
parent a09d451d11
commit 89f53b9d7b
12 changed files with 22 additions and 80 deletions

View File

@ -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),
}