Skip to content

Commit

Permalink
chore(deps): bump serde from 1.0.199 to 1.0.200 (#28)
Browse files Browse the repository at this point in the history
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.199 to
1.0.200.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/serde-rs/serde/releases">serde's
releases</a>.</em></p>
<blockquote>
<h2>v1.0.200</h2>
<ul>
<li>Fix formatting of &quot;invalid type&quot; and &quot;invalid
value&quot; deserialization error messages containing NaN or infinite
floats (<a
href="https://redirect.github.com/serde-rs/serde/issues/2733">#2733</a>,
thanks <a
href="https://github.com/jamessan"><code>@​jamessan</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/serde-rs/serde/commit/cc865ac5236c094275b10bff4fa41e561b3e359f"><code>cc865ac</code></a>
Release 1.0.200</li>
<li><a
href="https://github.com/serde-rs/serde/commit/2d973c1805dd9b613e89cc2375130a23f18ffa73"><code>2d973c1</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2733">#2733</a>
from jamessan/nan-decimal</li>
<li><a
href="https://github.com/serde-rs/serde/commit/6ca499b2dd3d520903095b202770eba2720ba9b5"><code>6ca499b</code></a>
Only format Unexpected::Float with decimal point if it is finite</li>
<li>See full diff in <a
href="https://github.com/serde-rs/serde/compare/v1.0.199...v1.0.200">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.199&new-version=1.0.200)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
Yag000 authored May 6, 2024
2 parents 3b4d0d5 + 30b982d commit c9ab77d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ config = "0.14.0"
daemonize = "0.5.0"
home = "0.5.9"
rand = "0.8.5"
serde = "1.0.199"
serde = "1.0.200"
serde_derive = "1.0.188"
thiserror = "1.0.59"
21 changes: 11 additions & 10 deletions src/path.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::{
fmt::Display,
fs::read_dir,
path::{Path, PathBuf},
};
Expand Down Expand Up @@ -40,11 +41,11 @@ impl File {
}
}

impl ToString for File {
fn to_string(&self) -> String {
impl Display for File {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Image(image) => image.to_string(),
Self::Folder(folder) => folder.to_string(),
Self::Image(image) => write!(f, "{}", image),
Self::Folder(folder) => write!(f, "{}", folder),
}
}
}
Expand Down Expand Up @@ -192,9 +193,9 @@ impl ImagePath {
}
}

impl ToString for ImagePath {
fn to_string(&self) -> String {
self.path.to_str().unwrap().to_owned()
impl Display for ImagePath {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.path.to_str().unwrap())
}
}

Expand Down Expand Up @@ -228,9 +229,9 @@ impl AnimtaedFolder {
}
}

impl ToString for AnimtaedFolder {
fn to_string(&self) -> String {
self.path.to_str().unwrap().to_owned()
impl Display for AnimtaedFolder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.path.to_str().unwrap())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn run(settings: Settings, action: Actions) {
Err(err) => eprintln!("Error, {}", err),
},
Actions::Get => match get_next_wallpaper(&settings) {
Ok(wallpaper) => println!("{}", wallpaper.to_string()),
Ok(wallpaper) => println!("{}", wallpaper),
Err(err) => eprintln!("Error, {}", err),
},
}
Expand Down

0 comments on commit c9ab77d

Please sign in to comment.