chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b38993
)
wdriver: Remove an unused field
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 11:48:18 +0000
(11:48 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 11:48:18 +0000
(11:48 +0000)
This was just here for possible use in error messages but we use name
instead.
wdriver/wdriver.rs
patch
|
blob
|
history
diff --git
a/wdriver/wdriver.rs
b/wdriver/wdriver.rs
index f0d190a7246a38741f4c5ec4fbc9d3eeb4301274..1b32cfba1a861a7465881dbf4ee73ea18390ca45 100644
(file)
--- a/
wdriver/wdriver.rs
+++ b/
wdriver/wdriver.rs
@@
-175,7
+175,6
@@
pub type JsLogfile = Rc<RefCell<JsLogfileImp>>;
#[derive(Debug)]
pub struct JsLogfileImp {
name: String,
- path: String,
fh: File,
counter: usize,
}
@@
-189,7
+188,7
@@
impl JsLogfileImp {
let name = name.to_owned();
let fh = File::create(&path).with_context(|| path.clone())?;
let counter = 0;
- JsLogfileImp { name,
path,
fh, counter }
+ JsLogfileImp { name, fh, counter }
}
pub fn name(&self) -> String {