From bd23f27f363f7c30d7db57010810b87f97891a5f Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 30 Dec 2021 11:24:52 +0000 Subject: mark all required parameters as such --- lib/Lirc/Client.rakumod | 4 ++-- lib/Vlc/Client.rakumod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Lirc/Client.rakumod b/lib/Lirc/Client.rakumod index 0065335..f87528c 100644 --- a/lib/Lirc/Client.rakumod +++ b/lib/Lirc/Client.rakumod @@ -21,14 +21,14 @@ class Lirc::Client { X::Init.new(rc => -$!fd).throw() if $!fd < 0; } - method !send-sync(Str :$remote, Str :$keysym) { + method !send-sync(Str :$remote!, Str :$keysym!) { my $rc = lirc_send_one($!fd, $remote, $keysym); X::Send.new().throw() if $rc != 0; } # copied from OO::Actors has Lock::Async $!orderer .= new; - method send(Str :$remote, Str :$keysym) { + method send(Str :$remote!, Str :$keysym!) { $!orderer.lock.then({ LEAVE $!orderer.unlock; self!send-sync(:$remote, :$keysym); diff --git a/lib/Vlc/Client.rakumod b/lib/Vlc/Client.rakumod index 5b19c53..8951c60 100644 --- a/lib/Vlc/Client.rakumod +++ b/lib/Vlc/Client.rakumod @@ -39,7 +39,7 @@ class Vlc::Client { return self!call-vlc('status.xml', :$command, |%args); } - method play-file(Str:D :$path, Str:D :$name) { + method play-file(Str:D :$path!, Str:D :$name!) { return self.command( 'in_play', input => self.mrl-root.child($path).child($name), -- cgit v1.2.3