File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010 ci :
11- runs-on : ubuntu-20 .04
11+ runs-on : ubuntu-24 .04
1212
1313 steps :
1414 - uses : actions/checkout@v2
@@ -32,10 +32,10 @@ jobs:
3232 run : cargo doc
3333
3434 nix :
35- runs-on : ubuntu-20 .04
35+ runs-on : ubuntu-24 .04
3636 steps :
3737 - uses : actions/checkout@v2
38- - uses : actions/cache@v2
38+ - uses : actions/cache@v4
3939 with :
4040 path : /nix
4141 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
Original file line number Diff line number Diff line change 1010jobs :
1111
1212 release :
13- # Should match the version that Polygott uses .
14- runs-on : ubuntu-18 .04
13+ # Should match the version reported by /etc/lsb-release on Repls .
14+ runs-on : ubuntu-24 .04
1515
1616 steps :
1717 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl Message {
115115 skip ( src, 3 * number_of_colors) ?;
116116
117117 let bpp = if number_of_colors <= 2 { 1 } else { 8 } ;
118- let row_size = ( width * bpp + 7 ) / 8 ;
118+ let row_size = ( width * bpp) . div_ceil ( 8 ) ;
119119 let uncompressed_size = row_size * height;
120120
121121 log:: debug!(
@@ -150,7 +150,7 @@ impl Message {
150150 // Cursor Pseudo-encoding
151151 -239 => {
152152 skip ( src, width * height * bytes_per_pixel) ?;
153- let row_size = ( width + 7 ) / 8 ;
153+ let row_size = width. div_ceil ( 8 ) ;
154154 skip ( src, row_size * height)
155155 }
156156 // QEMU Extended Key Event Pseudo-encoding
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl RfbConnection {
8080 } )
8181 }
8282
83- pub fn split ( & mut self ) -> ( ReadHalf , WriteHalf ) {
83+ pub fn split < ' a > ( & ' a mut self ) -> ( ReadHalf < ' a > , WriteHalf < ' a > ) {
8484 let ( rs, ws) = self . stream . split ( ) ;
8585 (
8686 ReadHalf {
You can’t perform that action at this time.
0 commit comments