MCPcopy Create free account
hub / github.com/hashintel/hash / panic_on_unused

Function panic_on_unused

libs/error-stack/src/sink.rs:551–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

549 #[test]
550 #[should_panic(expected = "without being consumed")]
551 fn panic_on_unused() {
552 #[expect(clippy::unnecessary_wraps)]
553 fn sink() -> Result<(), Report<[TestError]>> {
554 let mut sink = ReportSink::new_armed();
555
556 sink.append(Report::new(TestError(0)));
557
558 Ok(())
559 }
560
561 let _result = sink();
562 }
563
564 #[test]
565 fn panic_on_unused_with_defuse() {

Callers

nothing calls this directly

Calls 1

sinkFunction · 0.85

Tested by

no test coverage detected