aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/quarrel/native/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/quarrel/native/src/util.rs')
-rw-r--r--.config/awesome/quarrel/native/src/util.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/awesome/quarrel/native/src/util.rs b/.config/awesome/quarrel/native/src/util.rs
index 85a2574..41096d8 100644
--- a/.config/awesome/quarrel/native/src/util.rs
+++ b/.config/awesome/quarrel/native/src/util.rs
@@ -1,7 +1,6 @@
use std::{
cell::RefCell,
fs::File,
- fs::OpenOptions,
io::{
Read,
Seek,
@@ -49,7 +48,7 @@ enum StringOrNumber {
pub struct FileHandle(Rc<RefCell<File>>);
impl LuaUserData for FileHandle {
- fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M) {
+ fn add_methods<'lua, M: LuaUserDataMethods<Self>>(methods: &mut M) {
methods.add_method("read", |lua, this: &FileHandle, mode: String| {
let content = this.read()?;
Ok(lua.to_value(&match ReadMode::from_str(&mode).unwrap() {