Skip to content

Commit 91b5bf4

Browse files
committed
Bump MSRV to 1.60
1 parent 1ca8b65 commit 91b5bf4

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
rust_version: [1.57.0, stable, nightly]
25+
rust_version: ['1.60.0', stable, nightly]
2626
platform:
2727
# Note: Make sure that we test all the `docs.rs` targets defined in Cargo.toml!
2828
- { target: x86_64-pc-windows-msvc, os: windows-latest, }
@@ -95,7 +95,7 @@ jobs:
9595

9696
- name: Lint with clippy
9797
shell: bash
98-
if: (matrix.rust_version == '1.57.0') && !contains(matrix.platform.options, '--no-default-features')
98+
if: (matrix.rust_version == '1.60.0') && !contains(matrix.platform.options, '--no-default-features')
9999
run: cargo clippy --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings
100100

101101
- name: Build tests with serde enabled

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre
88

99
# Unreleased
1010

11+
- **Breaking:** Bump MSRV from `1.57` to `1.60`.
1112
- **Breaking:** Split the `platform::unix` module into `platform::x11` and `platform::wayland`. The extension types are similarly renamed.
1213
- **Breaking:**: Removed deprecated method `platform::unix::WindowExtUnix::is_ready`.
1314
- Removed `parking_lot` dependency.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ your description of the issue as detailed as possible:
2020

2121
When making a code contribution to winit, before opening your pull request, please make sure that:
2222

23-
- your patch builds with Winit's minimal supported rust version - Rust 1.57.0.
23+
- your patch builds with Winit's minimal supported rust version - Rust 1.60.
2424
- you tested your modifications on all the platforms impacted, or if not possible detail which platforms
2525
were not tested, and what should be tested, so that a maintainer or another contributor can test them
2626
- you updated any relevant documentation in winit

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
repository = "https://github.com/rust-windowing/winit"
1111
documentation = "https://docs.rs/winit"
1212
categories = ["gui"]
13-
rust-version = "1.57.0"
13+
rust-version = "1.60.0"
1414

1515
[package.metadata.docs.rs]
1616
features = ["serde"]

src/platform_impl/linux/x11/dnd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl Dnd {
188188
.get_property(window, self.atoms.selection, self.atoms.uri_list)
189189
}
190190

191-
pub fn parse_data(&self, data: &mut Vec<c_uchar>) -> Result<Vec<PathBuf>, DndDataParseError> {
191+
pub fn parse_data(&self, data: &mut [c_uchar]) -> Result<Vec<PathBuf>, DndDataParseError> {
192192
if !data.is_empty() {
193193
let mut path_list = Vec::new();
194194
let decoded = percent_decode(data).decode_utf8()?.into_owned();

0 commit comments

Comments
 (0)