aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-07 19:51:06 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-10 14:49:38 +0400
commit7c8ea3fd70117273fdb013a7e747083d04215812 (patch)
treec69ed8cfebf0cb6b9bc05d2e8577384bb08164df /src
parenta58e879bce52c1b5072e50769a17ee128a42c1a2 (diff)
downloadniri-7c8ea3fd70117273fdb013a7e747083d04215812.tar.gz
niri-7c8ea3fd70117273fdb013a7e747083d04215812.tar.bz2
niri-7c8ea3fd70117273fdb013a7e747083d04215812.zip
Fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
-rw-r--r--src/state.rs4
-rw-r--r--src/winit.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index a9c9727c..7e2650c6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -24,11 +24,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut event_loop: EventLoop<CalloopData> = EventLoop::try_new()?;
let mut display: Display<Smallvil> = Display::new()?;
- let state = Smallvil::new(&mut event_loop, &mut display);
+ let state = Smallvil::new(&event_loop, &mut display);
let mut data = CalloopData { state, display };
- crate::winit::init_winit(&mut event_loop, &mut data)?;
+ crate::winit::init_winit(&event_loop, &mut data)?;
let mut args = std::env::args().skip(1);
let flag = args.next();
diff --git a/src/state.rs b/src/state.rs
index 7573d27b..15bdf3a0 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -39,7 +39,7 @@ pub struct Smallvil {
}
impl Smallvil {
- pub fn new(event_loop: &mut EventLoop<CalloopData>, display: &mut Display<Self>) -> Self {
+ pub fn new(event_loop: &EventLoop<CalloopData>, display: &mut Display<Self>) -> Self {
let start_time = std::time::Instant::now();
let dh = display.handle();
@@ -94,7 +94,7 @@ impl Smallvil {
fn init_wayland_listener(
display: &mut Display<Smallvil>,
- event_loop: &mut EventLoop<CalloopData>,
+ event_loop: &EventLoop<CalloopData>,
) -> OsString {
// Creates a new listening socket, automatically choosing the next available `wayland`
// socket name.
diff --git a/src/winit.rs b/src/winit.rs
index 15754b5d..d0bb1a22 100644
--- a/src/winit.rs
+++ b/src/winit.rs
@@ -12,7 +12,7 @@ use smithay::utils::{Rectangle, Transform};
use crate::{CalloopData, Smallvil};
pub fn init_winit(
- event_loop: &mut EventLoop<CalloopData>,
+ event_loop: &EventLoop<CalloopData>,
data: &mut CalloopData,
) -> Result<(), Box<dyn std::error::Error>> {
let display = &mut data.display;