Skip to content
Snippets Groups Projects
Commit e04e41a1 authored by Ian Jackson's avatar Ian Jackson
Browse files

connection preferences: Make `clone_with_prefs` must_use

parent 7ff16fc2
No related branches found
No related tags found
1 merge request!250Provide TorClient::set_default_prefs and clone_with_prefs
......@@ -458,6 +458,7 @@ impl<R: Runtime> TorClient<R> {
///
/// Connections made with e.g. [`connect`](TorClient::connect) on the returned handle will use
/// `connect_prefs`. This is a convenience wrapper for `clone` and `set_connect_prefs`.
#[must_use]
pub fn clone_with_prefs(&self, connect_prefs: ConnectPrefs) -> Self {
let mut result = self.clone();
result.set_connect_prefs(connect_prefs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment