Skip to content

Commit

Permalink
fixed serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Feb 19, 2023
1 parent 46f2954 commit 7ad7a15
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

## 0.11.0

Released on 19/02/2023
Released on 20/02/2023

> 🦥 The lazy update
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</p>

<p align="center">Developed by <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Current version: 0.11.0 (19/02/2023)</p>
<p align="center">Current version: 0.11.0 (20/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
2 changes: 1 addition & 1 deletion docs/de/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</p>

<p align="center">Entwickelt von <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Aktuelle Version: 0.11.0 (14/02/2023)</p>
<p align="center">Aktuelle Version: 0.11.0 (20/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
2 changes: 1 addition & 1 deletion docs/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</p>

<p align="center">Desarrollado por <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Versión actual: 0.11.0 (14/02/2023)</p>
<p align="center">Versión actual: 0.11.0 (20/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</p>

<p align="center">Développé par <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Version actuelle: 0.11.0 (14/02/2023)</p>
<p align="center">Version actuelle: 0.11.0 (20/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
2 changes: 1 addition & 1 deletion docs/it/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</p>

<p align="center">Sviluppato da <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Versione corrente: 0.11.0 (14/02/2023)</p>
<p align="center">Versione corrente: 0.11.0 (20/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</p>

<p align="center">由 <a href="https://veeso.github.io/" target="_blank">@veeso</a> 开发</p>
<p align="center">当前版本: 0.11.0 (14/02/2023)</p>
<p align="center">当前版本: 0.11.0 (20/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/config/bookmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ fn deserialize_protocol<'de, D>(deserializer: D) -> Result<FileTransferProtocol,
where
D: Deserializer<'de>,
{
let s: &str = Deserialize::deserialize(deserializer)?;
let s: String = Deserialize::deserialize(deserializer)?;
// Parse color
match FileTransferProtocol::from_str(s) {
match FileTransferProtocol::from_str(&s) {
Err(err) => Err(DeError::custom(err)),
Ok(protocol) => Ok(protocol),
}
Expand Down
4 changes: 2 additions & 2 deletions src/config/themes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ fn deserialize_color<'de, D>(deserializer: D) -> Result<Color, D::Error>
where
D: Deserializer<'de>,
{
let s: &str = Deserialize::deserialize(deserializer)?;
let s: String = Deserialize::deserialize(deserializer)?;
// Parse color
match parse_color(s) {
match parse_color(&s) {
None => Err(DeError::custom("Invalid color")),
Some(color) => Ok(color),
}
Expand Down

0 comments on commit 7ad7a15

Please sign in to comment.