diff --git a/doctreecmd/src/main.rs b/doctreecmd/src/main.rs index 4ee07f9..27f35e3 100644 --- a/doctreecmd/src/main.rs +++ b/doctreecmd/src/main.rs @@ -90,7 +90,7 @@ fn main() -> Result<()> { let doctree_name = matches.value_of("doctree").unwrap_or("default"); // Create a storage with the specified doctree name - let mut storage = RedisStorage::new("redis://localhost:6379")?; + let storage = RedisStorage::new("redis://localhost:6379")?; storage.set_doctree_name(doctree_name); // Create a DocTree with the specified doctree name @@ -116,7 +116,7 @@ fn main() -> Result<()> { let doctree_name = matches.value_of("doctree").unwrap_or("default"); // Create a storage with the specified doctree name - let mut storage = RedisStorage::new("redis://localhost:6379")?; + let storage = RedisStorage::new("redis://localhost:6379")?; storage.set_doctree_name(doctree_name); // Create a DocTree with the specified doctree name @@ -141,7 +141,7 @@ fn main() -> Result<()> { let doctree_name = matches.value_of("doctree").unwrap_or("default"); // Create a storage with the specified doctree name - let mut storage = RedisStorage::new("redis://localhost:6379")?; + let storage = RedisStorage::new("redis://localhost:6379")?; storage.set_doctree_name(doctree_name); // Create a DocTree with the specified doctree name @@ -159,7 +159,7 @@ fn main() -> Result<()> { let doctree_name = matches.value_of("doctree").unwrap_or("default"); // Create a storage with the specified doctree name - let mut storage = RedisStorage::new("redis://localhost:6379")?; + let storage = RedisStorage::new("redis://localhost:6379")?; storage.set_doctree_name(doctree_name); // Create a DocTree with the specified doctree name @@ -271,7 +271,7 @@ fn main() -> Result<()> { let doctree_name = matches.value_of("doctree").unwrap_or("default"); // Create a storage with the specified doctree name - let mut storage = RedisStorage::new("redis://localhost:6379")?; + let storage = RedisStorage::new("redis://localhost:6379")?; storage.set_doctree_name(doctree_name); // Create a DocTree with the specified doctree name @@ -287,7 +287,7 @@ fn main() -> Result<()> { let doctree_name = matches.value_of("doctree").unwrap_or("default"); // Create a storage with the specified doctree name - let mut storage = RedisStorage::new("redis://localhost:6379")?; + let storage = RedisStorage::new("redis://localhost:6379")?; storage.set_doctree_name(doctree_name); // Create a DocTree with the specified doctree name