Skip to content

Commit

Permalink
use the new cstr literal syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Mar 22, 2024
1 parent d2623c5 commit d1ba227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Bar {
surface,
Some(output.wl),
zwlr_layer_shell_v1::Layer::Top,
wayrs_client::cstr!("i3bar-river").into(),
c"i3bar-river".into(),
layer_surface_cb,
);

Expand Down
6 changes: 3 additions & 3 deletions src/wm_info_provider/river.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::ffi::CString;

use wayrs_client::global::*;
use wayrs_client::proxy::Proxy;
use wayrs_client::{cstr, EventCtx};
use wayrs_client::EventCtx;

use super::*;

Expand Down Expand Up @@ -115,8 +115,8 @@ impl WmInfoProvider for RiverInfoProvider {
btn: PointerBtn,
) {
let cmd = match btn {
PointerBtn::Left => cstr!("set-focused-tags"),
PointerBtn::Right => cstr!("toggle-focused-tags"),
PointerBtn::Left => c"set-focused-tags",
PointerBtn::Right => c"toggle-focused-tags",
_ => return,
};
self.control.add_argument(conn, cmd.to_owned());
Expand Down

0 comments on commit d1ba227

Please sign in to comment.