basic updating

This commit is contained in:
Jonathan Spira 2023-09-17 13:53:36 -04:00
parent 4618936344
commit 00894927e4
10 changed files with 14 additions and 12 deletions

View File

@ -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
@ -19,10 +18,11 @@ jobs:
clippy:
name: Run linter
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
strategy:
matrix:
rust: ["1.64"]
rust: ["1.70"]
env:
RUSTFLAGS: -D warnings
@ -81,7 +81,7 @@ jobs:
matrix:
rust:
- stable
- "1.64"
- "1.70"
os:
- ubuntu-latest
- macos-latest

View File

@ -10,3 +10,6 @@ members = [
"imgui-examples",
"xtask",
]
package.rust-version = "1.70"
resolver = "2"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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]