mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix build warnings for Rust 1.43.0
This commit is contained in:
1 parent
4082b13622
commit
ce2d9d8d7c
7 files changed
+3
-18
No files matched your search
@@ -1,5 +1,3 @@
|
||||
use lalrpop;
|
||||
|
||||
fn main() {
|
||||
lalrpop::process_root().unwrap()
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
use hexf_parse;
|
||||
use num_bigint::{BigInt, ToBigInt};
|
||||
use num_rational::Ratio;
|
||||
use num_traits::{float::Float, pow, sign::Signed, ToPrimitive, Zero};
|
||||
|
||||
+3
-6
@@ -1,6 +1,5 @@
|
||||
use std::fmt;
|
||||
|
||||
use serde;
|
||||
use num_traits::cast::ToPrimitive;
|
||||
use num_traits::sign::Signed;
|
||||
use serde::de::{DeserializeSeed, Visitor};
|
||||
use serde::ser::{Serialize, SerializeMap, SerializeSeq};
|
||||
|
||||
@@ -10,8 +9,6 @@ use crate::obj::{
|
||||
};
|
||||
use crate::pyobject::{IdProtocol, ItemProtocol, PyObjectRef, TypeProtocol};
|
||||
use crate::VirtualMachine;
|
||||
use num_traits::cast::ToPrimitive;
|
||||
use num_traits::sign::Signed;
|
||||
|
||||
#[inline]
|
||||
pub fn serialize<S>(
|
||||
@@ -137,7 +134,7 @@ impl<'de> DeserializeSeed<'de> for PyObjectDeserializer<'de> {
|
||||
impl<'de> Visitor<'de> for PyObjectDeserializer<'de> {
|
||||
type Value = PyObjectRef;
|
||||
|
||||
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
formatter.write_str("a type that can deserialise in Python")
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use num_cpus;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::ffi;
|
||||
use std::fs::File;
|
||||
@@ -13,8 +12,6 @@ use std::{env, fs};
|
||||
|
||||
use bitflags::bitflags;
|
||||
#[cfg(unix)]
|
||||
use exitcode;
|
||||
#[cfg(unix)]
|
||||
use nix::errno::Errno;
|
||||
#[cfg(all(unix, not(target_os = "redox")))]
|
||||
use nix::pty::openpty;
|
||||
@@ -24,8 +21,6 @@ use nix::unistd::{self, Gid, Pid, Uid};
|
||||
use std::os::unix::io::RawFd;
|
||||
#[cfg(windows)]
|
||||
use std::os::windows::io::RawHandle;
|
||||
#[cfg(unix)]
|
||||
use uname;
|
||||
|
||||
use super::errno::errors;
|
||||
use crate::exceptions::PyBaseExceptionRef;
|
||||
|
||||
@@ -8,7 +8,6 @@ use arr_macro::arr;
|
||||
#[cfg(unix)]
|
||||
use nix::unistd::alarm as sig_alarm;
|
||||
|
||||
use libc;
|
||||
#[cfg(not(windows))]
|
||||
use libc::{SIG_DFL, SIG_ERR, SIG_IGN};
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ use std::fs::File;
|
||||
use std::io::ErrorKind;
|
||||
use std::time::Duration;
|
||||
|
||||
use subprocess;
|
||||
|
||||
use crate::function::OptionalArg;
|
||||
use crate::obj::objbytes::PyBytesRef;
|
||||
use crate::obj::objlist::PyListRef;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use js_sys::{Array, ArrayBuffer, Object, Promise, Reflect, SyntaxError, Uint8Array};
|
||||
use serde_wasm_bindgen;
|
||||
use wasm_bindgen::{closure::Closure, prelude::*, JsCast};
|
||||
|
||||
use rustpython_compiler::error::{CompileError, CompileErrorType};
|
||||
|
||||
Reference in new issue
Block a user