We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e68d6 commit 06de6c8Copy full SHA for 06de6c8
src/lib.rs
@@ -425,9 +425,6 @@ impl Query {
425
self
426
}
427
pub(in crate) fn _push_arg(&mut self, arg: Vec<u8>) {
428
- if arg.is_empty() {
429
- panic!("Argument cannot be empty")
430
- }
431
// A data element will look like:
432
// `<bytes_in_next_line>\n<data>`
433
let bytes_in_next_line = arg.len().to_string().into_bytes();
@@ -447,10 +444,6 @@ impl Query {
447
444
/// ## Panics
448
445
/// This method will panic if the passed `arg` is empty
449
446
pub fn push(&mut self, arg: impl IntoSkyhashAction) {
450
- assert!(
451
- arg.incr_len_by() != 0,
452
- "An argument passed to a query cannot be empty!"
453
- );
454
arg.push_into_query(self);
455
456
pub(in crate) fn _push_alt_iter<T, U>(
0 commit comments