|
|
@@ -5,7 +5,7 @@ use flate2::Compression;
|
|
|
use std::io::prelude::*;
|
|
|
|
|
|
/// Compress string and encode in a URL safe form
|
|
|
-fn compress_string(s: &str) -> String {
|
|
|
+pub fn compress_string(s: &str) -> String {
|
|
|
// Convert string to bytes
|
|
|
let bytes = s.as_bytes();
|
|
|
|