Skip to content

Commit c2a7609

Browse files
committed
Use unimplemented
1 parent 7df4a7b commit c2a7609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/std/src/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub trait Storage {
7070
) -> Box<dyn Iterator<Item = Record> + 'a> {
7171
// This default implementation is just to avoid breaking code when enabling the `iterator` feature.
7272
// Any actual `Storage` impl should override this method.
73-
Box::new(std::iter::empty())
73+
unimplemented!("This storage does not support ranging. Make sure to override the `range` method in your `Storage` implementation.")
7474
}
7575

7676
/// Allows iteration over a set of keys, either forwards or backwards.

0 commit comments

Comments
 (0)