Skip to content

Commit

Permalink
Address lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Mar 3, 2022
1 parent fc8d59a commit 3e5350f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/windows_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,24 @@ jobs:
# fail_ci_if_error: true # optional (default = false)
# name: codecov-umbrella # optional
# Enable this to get RDP access to the worker.
- name: Download
if: ${{ failure() }}
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
- name: Extract
if: ${{ failure() }}
run: Expand-Archive ngrok.zip
- name: Auth
if: ${{ failure() }}
run: .\ngrok\ngrok.exe authtoken 1raaG4z7gsaCRlLw8cRkUWW6ItF_2LWTUFxXwd6UeeJNAAAci
- name: Enable TS
if: ${{ failure() }}
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
if: ${{ failure() }}
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
if: ${{ failure() }}
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
if: ${{ failure() }}
- name: Create Tunnel
if: ${{ failure() }}
run: .\ngrok\ngrok.exe tcp 3389
# - name: Download
# if: ${{ failure() }}
# run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
# - name: Extract
# if: ${{ failure() }}
# run: Expand-Archive ngrok.zip
# - name: Auth
# if: ${{ failure() }}
# run: .\ngrok\ngrok.exe authtoken 1raaG4z7gsaCRlLw8cRkUWW6ItF_2LWTUFxXwd6UeeJNAAAci
# - name: Enable TS
# if: ${{ failure() }}
# run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
# - run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# if: ${{ failure() }}
# - run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
# if: ${{ failure() }}
# - run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
# if: ${{ failure() }}
# - name: Create Tunnel
# if: ${{ failure() }}
# run: .\ngrok\ngrok.exe tcp 3389
1 change: 0 additions & 1 deletion src/pty/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use windows::Win32::Globalization::{MultiByteToWideChar, WideCharToMultiByte, CP
use windows::core::{HRESULT, Error};

use std::ptr;
use std::env;
use std::sync::mpsc;
use std::thread;
use std::time::Duration;
Expand Down
2 changes: 1 addition & 1 deletion src/pty/conpty/pty_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use windows::Win32::System::Threading::{
use windows::Win32::UI::WindowsAndMessaging::{ShowWindow, SW_HIDE};
use windows::core::{HRESULT, Error};

use std::{mem, env, ptr};
use std::{mem, ptr};
use std::mem::MaybeUninit;
use std::ffi::OsString;
use std::os::windows::prelude::*;
Expand Down

0 comments on commit 3e5350f

Please sign in to comment.