Skip to content

Commit 7b2ff89

Browse files
committed
Fix nightly warnings
eg: ``` warning: the item `Box` is imported redundantly ```
1 parent d1eac05 commit 7b2ff89

File tree

6 files changed

+2
-7
lines changed

6 files changed

+2
-7
lines changed

api/cpp/cbindgen.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
use anyhow::Context;
55
use std::io::{BufWriter, Write};
6-
use std::iter::Extend;
76
use std::path::{Path, PathBuf};
87

98
// cSpell: ignore compat constexpr corelib deps sharedvector pathdata

api/cpp/platform.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright © SixtyFPS GmbH <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
33

4-
use alloc::boxed::Box;
54
use alloc::rc::Rc;
6-
use alloc::string::String;
5+
#[cfg(not(feature = "std"))]
6+
use alloc::{boxed::Box, string::String};
77
use core::ffi::c_void;
88
use i_slint_core::api::{
99
LogicalSize, PhysicalPosition, PhysicalSize, Window, WindowPosition, WindowSize,

internal/backends/qt/qt_accessible.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use cpp::*;
1616
use pin_project::pin_project;
1717
use qttypes::QString;
1818

19-
use alloc::boxed::Box;
2019
use core::ffi::c_void;
2120
use std::pin::Pin;
2221

internal/core/graphics/image.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,6 @@ pub fn fit9slice(
10071007
pub(crate) mod ffi {
10081008
#![allow(unsafe_code)]
10091009

1010-
use super::super::IntSize;
10111010
use super::*;
10121011

10131012
// Expand Rgb8Pixel so that cbindgen can see it. (is in fact rgb::RGB<u8>)

internal/core/item_tree.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,6 @@ pub(crate) mod ffi {
986986
#![allow(unsafe_code)]
987987

988988
use super::*;
989-
use crate::slice::Slice;
990989
use core::ffi::c_void;
991990

992991
/// Call init() on the ItemVTable of each item in the item array.

internal/core/properties/ffi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use super::*;
55
use crate::graphics::{Brush, Color};
66
use crate::items::PropertyAnimation;
7-
use core::pin::Pin;
87

98
#[allow(non_camel_case_types)]
109
type c_void = ();

0 commit comments

Comments
 (0)