##// END OF EJS Templates
rust-chg: add brief comment about initial capacity of temp_sock_path()...
Yuya Nishihara -
r45158:c11d98cf default
parent child Browse files
Show More
@@ -47,7 +47,7 b' impl Locator {'
47 47 /// Temporary socket path for this client process.
48 48 fn temp_sock_path(&self) -> PathBuf {
49 49 let src = self.base_sock_path.as_os_str().as_bytes();
50 let mut buf = Vec::with_capacity(src.len() + 6);
50 let mut buf = Vec::with_capacity(src.len() + 6); // "{src}.{pid}".len()
51 51 buf.extend_from_slice(src);
52 52 buf.extend_from_slice(format!(".{}", self.process_id).as_bytes());
53 53 OsString::from_vec(buf).into()
General Comments 0
You need to be logged in to leave comments. Login now