Skip to content

Commit

Permalink
bump msrv to 1.60.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Nov 16, 2023
1 parent 6bade3a commit 1eebe7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ jobs:
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup update 1.57.0
run: rustup update 1.60.0

- name: Version features
run: cargo +1.57.0 build --manifest-path tests/smoke-test/Cargo.toml
run: cargo +1.60.0 build --manifest-path tests/smoke-test/Cargo.toml

wasm_bindgen:
name: Tests / WebAssembly (wasm-bindgen)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ name = "uuid"
readme = "README.md"
repository = "https://github.com/uuid-rs/uuid"
version = "1.5.0" # remember to update html_root_url in lib.rs
rust-version = "1.57.0"
rust-version = "1.60.0"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "uuid_unstable"]
Expand Down
9 changes: 1 addition & 8 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ macro_rules! define_uuid_macro {
($uuid:literal) => {{
const OUTPUT: $crate::Uuid = match $crate::Uuid::try_parse($uuid) {
$crate::__macro_support::Ok(u) => u,
$crate::__macro_support::Err(_) => {
// here triggers const_err
// const_panic requires 1.57
#[allow(unconditional_panic)]
let _ = ["invalid uuid representation"][1];

loop {} // -> never type
}
$crate::__macro_support::Err(e) => panic!("{}", e),
};
OUTPUT
}};
Expand Down

0 comments on commit 1eebe7d

Please sign in to comment.