This works around a failure that looks like this:
error: failed to select a version for `serde`.
... required by package `time v0.3.26`
... which satisfies dependency `time = "^0.3.26"` of package `cargo-expand v1.0.64 (/tmp/cargo-outdatedBxYFNJ)`
versions that meet the requirements `>=1.0.126, <=1.0.171` are: 1.0.171, 1.0.170, 1.0.169, 1.0.168, 1.0.167, 1.0.166, 1.0.165, 1.0.164, 1.0.163, 1.0.162, 1.0.161, 1.0.160, 1.0.159, 1.0.158, 1.0.157, 1.0.156, 1.0.155, 1.0.154, 1.0.153, 1.0.152, 1.0.151, 1.0.150, 1.0.149, 1.0.148, 1.0.147, 1.0.146, 1.0.145, 1.0.144, 1.0.143, 1.0.142, 1.0.141, 1.0.140, 1.0.139, 1.0.138, 1.0.137, 1.0.136, 1.0.135, 1.0.134, 1.0.133, 1.0.132, 1.0.131, 1.0.130, 1.0.129, 1.0.128, 1.0.127, 1.0.126
all possible versions conflict with previously selected packages.
previously selected package `serde v1.0.183`
... which satisfies dependency `serde = "^1.0.183"` of package `cargo-expand v1.0.64 (/tmp/cargo-outdatedBxYFNJ)`
failed to select a version for `serde` which could resolve this conflict
warning: the borrowed expression implements the required traits
--> src/manifest.rs:21:38
|
21 | let content = fs::read_to_string(&manifest_path)?;
| ^^^^^^^^^^^^^^ help: change this to: `manifest_path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-W clippy::needless-borrow` implied by `-W clippy::all`
warning: item name ends with its containing module's name
--> src/manifest.rs:9:12
|
9 | pub struct CargoManifest {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
= note: `-W clippy::module-name-repetitions` implied by `-W clippy::pedantic`