Commit cffd5540 authored by Wohlgemuth, Jason's avatar Wohlgemuth, Jason
Browse files

feat: Enforce new clippy lint rules to improve no_std posture

parent 7ae493cb
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -43,3 +43,8 @@ assert_cmd = "2.1.1"

[lints.rust]
unsafe_code = "forbid"

[lints.clippy]
std_instead_of_core = "warn"
std_instead_of_alloc = "warn"
alloc_instead_of_core = "warn"
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ impl PartialEq for Details {
        (self.description == other.description) && (self.condition == other.condition)
    }
}
impl std::ops::Deref for PyProjectToml {
impl core::ops::Deref for PyProjectToml {
    type Target = pyproject_toml::PyProjectToml;

    fn deref(&self) -> &Self::Target {
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ use serde::ser::StdError;
use serde::{Deserialize, Serialize};
use serde_json::{Map, Number, Value};
use std::collections::HashMap;
use std::convert::TryFrom;
use core::convert::TryFrom;
use std::env::{set_var, vars};
use std::ffi::OsStr;
use std::io::{BufRead, BufReader};