projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abide by route hint max_htlc in pathfinding
[rust-lightning]
/
lightning-persister
/
src
/
util.rs
diff --git
a/lightning-persister/src/util.rs
b/lightning-persister/src/util.rs
index 4adbb33e5b26fd886fb64d05d3d315efd3f28b16..20c4a8151854a4e2b1b51183487305e374d95f89 100644
(file)
--- a/
lightning-persister/src/util.rs
+++ b/
lightning-persister/src/util.rs
@@
-102,10
+102,10
@@
mod tests {
let test_writeable = TestWriteable{};
let filename = "test_readonly_dir_persister_filename".to_string();
let path = "test_readonly_dir_persister_dir";
let test_writeable = TestWriteable{};
let filename = "test_readonly_dir_persister_filename".to_string();
let path = "test_readonly_dir_persister_dir";
- fs::create_dir_all(path
.to_string()
).unwrap();
- let mut perms = fs::metadata(path
.to_string()
).unwrap().permissions();
+ fs::create_dir_all(path).unwrap();
+ let mut perms = fs::metadata(path).unwrap().permissions();
perms.set_readonly(true);
perms.set_readonly(true);
- fs::set_permissions(path
.to_string()
, perms).unwrap();
+ fs::set_permissions(path, perms).unwrap();
let mut dest_file = PathBuf::from(path);
dest_file.push(filename);
match write_to_file(dest_file, &test_writeable) {
let mut dest_file = PathBuf::from(path);
dest_file.push(filename);
match write_to_file(dest_file, &test_writeable) {