Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating msrv #747

Merged
merged 2 commits into from Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -4,13 +4,12 @@ on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 1"

jobs:
rustfmt:
name: Check rustfmt
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -19,11 +18,7 @@ jobs:
clippy:
name: Run linter
runs-on: ubuntu-latest

strategy:
matrix:
rust: ["1.64"]

if: github.ref == 'refs/heads/main'
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
Expand All @@ -33,7 +28,6 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
components: clippy
rust-version: ${{ matrix.rust }}
- name: Cache cargo directories
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -80,8 +74,7 @@ jobs:
fail-fast: false
matrix:
rust:
- stable
- "1.64"
- "1.70"
os:
- ubuntu-latest
- macos-latest
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Expand Up @@ -10,3 +10,6 @@ members = [
"imgui-examples",
"xtask",
]

package.rust-version = "1.70"
resolver = "2"
2 changes: 1 addition & 1 deletion imgui-examples/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui-examples"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "imgui crate examples using Glium backend"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
Expand Down
2 changes: 1 addition & 1 deletion imgui-glium-renderer/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui-glium-renderer"
version = "0.11.0"
edition = "2018"
edition = "2021"
description = "Glium renderer for the imgui crate"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
Expand Down
2 changes: 1 addition & 1 deletion imgui-glow-renderer/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui-glow-renderer"
version = "0.11.0"
edition = "2018"
edition = "2021"
description = "glow renderer for the imgui crate"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
Expand Down
2 changes: 1 addition & 1 deletion imgui-sdl2-support/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui-sdl2-support"
version = "0.11.0"
edition = "2018"
edition = "2021"
authors = ["The imgui-rs Developers"]
description = "sdl2 support code for the imgui crate"
homepage = "https://github.com/imgui-rs/imgui-rs"
Expand Down
2 changes: 1 addition & 1 deletion imgui-sys/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui-sys"
version = "0.11.0"
edition = "2018"
edition = "2021"
description = "Raw FFI bindings to dear imgui"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
Expand Down
2 changes: 1 addition & 1 deletion imgui-winit-support/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui-winit-support"
version = "0.11.0"
edition = "2018"
edition = "2021"
description = "winit support code for the imgui crate"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
Expand Down
2 changes: 1 addition & 1 deletion imgui/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "imgui"
version = "0.11.0"
edition = "2018"
edition = "2021"
description = "High-level Rust bindings to dear imgui"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
Expand Down
1 change: 0 additions & 1 deletion imgui/src/render/draw_data.rs
Expand Up @@ -52,7 +52,6 @@ impl DrawData {
/// Returns the number of draw lists included in the draw data.
#[inline]
pub fn draw_lists_count(&self) -> usize {
use std::convert::TryInto;
self.cmd_lists_count.try_into().unwrap()
}
#[inline]
Expand Down