Skip to content

Commit

Permalink
removing printlns... (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadleyy committed Aug 31, 2022
1 parent 80e2639 commit 7f6520e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kramer"
version = "1.3.1"
version = "1.3.2"
authors = ["Danny Hadley <dadleyy@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions src/async_io.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg(feature = "kramer-async")]
#![warn(clippy::print_stdout)]

extern crate async_std;

Expand All @@ -20,7 +21,6 @@ where

match reader.read_line(&mut buffer).await.and_then(|_res| readline(buffer)) {
Ok(ResponseLine::Array(size)) => {
println!("array");
let mut store = Vec::with_capacity(size);

if size == 0 {
Expand Down Expand Up @@ -52,7 +52,6 @@ where
Ok(Response::Array(store))
}
Ok(ResponseLine::BulkString(size)) => {
println!("bulky");
if size < 1 {
return Ok(Response::Item(ResponseValue::Empty));
}
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![warn(clippy::missing_docs_in_private_items)]
#![warn(clippy::print_stdout)]

//! An implementation of the [redis protocol specification][redis] with an execution helper using
//! the [`TcpStream`][tcp-stream] provided by [async-std].
Expand Down
2 changes: 2 additions & 0 deletions src/sync_io.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(clippy::print_stdout)]

use crate::response::{readline, Response, ResponseLine, ResponseValue};
use std::io::prelude::*;
use std::io::{Error, ErrorKind};
Expand Down

0 comments on commit 7f6520e

Please sign in to comment.