Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Feb 22, 2021
1 parent 2772786 commit 9c0a7de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/brotli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use pyo3::prelude::*;
use pyo3::types::PyBytes;
use pyo3::wrap_pyfunction;
use pyo3::{PyResult, Python};
use std::io::{Cursor};
use std::io::Cursor;

pub fn init_py_module(m: &PyModule) -> PyResult<()> {
m.add_function(wrap_pyfunction!(compress, m)?)?;
Expand Down
1 change: 0 additions & 1 deletion src/lz4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub fn compress<'a>(
level: Option<u32>,
output_len: Option<usize>,
) -> PyResult<BytesType<'a>> {

match data {
BytesType::Bytes(input) => {
let out = to_py_err!(CompressionError -> self::internal::compress(input.as_bytes(), level))?;
Expand Down
2 changes: 1 addition & 1 deletion src/zstd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn compress<'a>(
level: Option<i32>,
output_len: Option<usize>,
) -> PyResult<BytesType<'a>> {
crate::generic!(compress(data), py = py, output_len = output_len, level=level)
crate::generic!(compress(data), py = py, output_len = output_len, level = level)
}

/// Compress directly into an output buffer
Expand Down

0 comments on commit 9c0a7de

Please sign in to comment.