Skip to content

Commit

Permalink
Fix error from 'cargo outdated'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dtolnay committed Aug 19, 2023
1 parent 5301de7 commit ee163f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 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 @@ -23,7 +23,7 @@ clap = { version = "4", features = ["deprecated", "derive"] }
prettyplease = { version = "0.2.11", features = ["verbatim"] }
proc-macro2 = "1.0.63"
quote = { version = "1.0", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0.183", features = ["derive"] }
syn = { version = "2.0.22", default-features = false, features = ["clone-impls", "fold", "full", "parsing", "printing", "visit-mut"] }
syn-select = "0.3"
tempfile = "3.0"
Expand Down

0 comments on commit ee163f0

Please sign in to comment.