fn load_lockfile(&self, lockfile_path: &Path) -> rustsec::Result<Lockfile> {
        if lockfile_path == Path::new("-") {
            // Read Cargo.lock from STDIN
            let mut lockfile_toml = String::new();
            io::stdin().read_to_string(&mut lockfile_toml)?;
            Ok(lockfile_toml.parse()?)
        } else {
            Ok(Lockfile::load(lockfile_path)?)
        }
    }
/// Load the lockfile to be audited
Load the lockfile to be audited
Load the lockfile to be audited
fn load_lockfile(&self, lockfile_path: &Path) -> rustsec::Result<Lockfile> {
        if lockfile_path == Path::new("-") {
            // Read Cargo.lock from STDIN
            let mut lockfile_toml = String::new();
            io::stdin().read_to_string(&mut lockfile_toml)?;
            Ok(lockfile_toml.parse()?)
        } else {
            Ok(Lockfile::load(lockfile_path)?)
        }
    }
fn load_lockfile ( & self , lockfile_path : & Path ) -> rustsec :: Result < Lockfile > { if lockfile_path == Path :: new ( " " ) { // Read Cargo.lock from STDIN let mut lockfile_toml = String :: new ( ) ; io :: stdin ( ) . read_to_string ( & mut lockfile_toml ) ? ; Ok ( lockfile_toml . parse ( ) ? ) } else { Ok ( Lockfile :: load ( lockfile_path ) ? ) } }
Load the lockfile to be audited
Load the lockfile to be audited
&self
lockfile_path
&Path
&self
lockfile_path
&Path