MCPcopy Index your code
hub / github.com/RustPython/RustPython / not_enough_data

Function not_enough_data

crates/stdlib/src/ssl/cert.rs:88–90  ·  view source on GitHub ↗
(context: &str)

Source from the content-addressed store, hash-verified

86 use super::*;
87
88 pub fn not_enough_data(context: &str) -> io::Error {
89 invalid_data(format!("not enough data: {context}"))
90 }
91
92 pub fn parse_failed(e: impl Display) -> io::Error {
93 invalid_data(format!("Failed to parse DER certificate: {e}"))

Callers 1

load_from_bytes_exMethod · 0.85

Calls 1

invalid_dataFunction · 0.85

Tested by

no test coverage detected