MCPcopy Create free account
hub / github.com/FrameworkComputer/framework-system / print_err

Function print_err

framework_lib/src/chromium_ec/mod.rs:2035–2038  ·  view source on GitHub ↗

Print the error and turn Result into Option TODO: This is here because of refactoring, might want to remove this function

(something: EcResult<T>)

Source from the content-addressed store, hash-verified

2033///
2034/// TODO: This is here because of refactoring, might want to remove this function
2035pub fn print_err<T>(something: EcResult<T>) -> Option<T> {
2036 print_err_ref(&something);
2037 something.ok()
2038}
2039
2040/// Which of the two EC images is currently in-use
2041#[derive(PartialEq, Debug)]

Callers 7

print_sensorsFunction · 0.85
set_tablet_modeMethod · 0.85
read_memoryMethod · 0.85
print_versionsFunction · 0.85
compare_versionFunction · 0.85
run_with_argsFunction · 0.85
selftestFunction · 0.85

Calls 1

print_err_refFunction · 0.85

Tested by

no test coverage detected