FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Drop the lint expectations clippy 1.98 no longer fulfils by luantaraschi · Pull Request #8564 · RustPython/RustPython · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rs  (4) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 0 additions & 4 deletions crates/host_env/src/fileutils.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,6 @@ pub unsafe fn fclose(fp: *mut CFile) -> core::ffi::c_int {
// _Py_fopen_obj in cpython (Python/fileutils.c:1757-1835)
// Open a file using std::fs::File and convert to FILE*
// Automatically handles path encoding and EINTR retries
#[expect(
clippy::std_instead_of_core,
reason = "false positive: core::io::ErrorKind is unstable (core_io)"
)]
pub fn fopen(path: &std::path::Path, mode: &str) -> std::io::Result<*mut CFile> {
use std::fs::File;

Expand Down
3 changes: 0 additions & 3 deletions crates/stdlib/src/pyexpat.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//! Pyexpat builtin module

// false positive: core::io::Cursor is unstable (core_io), unusable on stable
#![expect(clippy::std_instead_of_core)]

// spell-checker: ignore libexpat

pub(crate) use _pyexpat::module_def;
Expand Down
3 changes: 0 additions & 3 deletions crates/stdlib/src/ssl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
//!
//! Warning: This library contains AI-generated code and comments. Do not trust any code or comment without verification. Please have a qualified expert review the code and remove this notice after review.

// false positive: core::io::{Cursor, ErrorKind} are unstable (core_io), unusable on stable
#![expect(clippy::std_instead_of_core)]

// OID (Object Identifier) management module
mod oid;

Expand Down
4 changes: 0 additions & 4 deletions crates/vm/src/stdlib/_io.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ impl std::os::fd::AsRawFd for Fildes {
}

#[pymodule]
#[expect(
clippy::std_instead_of_core,
reason = "false positive: core::io items (Cursor, etc.) are unstable (core_io)"
)]
mod _io {
use super::*;
use crate::{
Expand Down
Loading

Back | FazBrowse Home | New Git URL