Skip to content

Commit

Permalink
Fix CI and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj committed Jun 17, 2024
1 parent e3d8d73 commit e3b82d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions async/examples/sunsetc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ use {
// crate::error::Error,
log::{debug, error, info, log, trace, warn},
};
#[allow(unused_imports)]
use anyhow::{Context, Result, anyhow, bail};
use argh::FromArgs;

use tokio::net::TcpStream;
use tokio::task::spawn_local;

use std::io::Read;

use sunset::*;
use sunset_embassy::{SSHClient, SunsetMutex};
use sunset_embassy::SSHClient;

use sunset_async::{CmdlineClient, AgentClient};

Expand Down
2 changes: 1 addition & 1 deletion async/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

mod pty;
mod cmdline_client;
mod knownhosts;
pub mod knownhosts;
mod agent;

#[cfg(unix)]
Expand Down
2 changes: 1 addition & 1 deletion embassy/demos/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![no_std]
#![cfg_attr(not(any(feature = "std", test)), no_std)]

// avoid warning about Send for the time being
#[allow(async_fn_in_trait)]
Expand Down
4 changes: 4 additions & 0 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub enum CliEvent<'g, 'a>
SessionExit(CliSessionExit<'g>),

/// The SSH connection is no longer running
#[allow(unused)]
Defunct,

// ChanRequest(ChanRequest<'g, 'a>),
Expand Down Expand Up @@ -198,6 +199,7 @@ pub(crate) enum CliEventId {
SessionOpened(ChanNum),
SessionExit,
Banner,
#[allow(unused)]
Defunct

// TODO:
Expand Down Expand Up @@ -274,6 +276,7 @@ pub enum ServEvent<'g, 'a> {
SessionExec(ChanRequest<'g, 'a>),
SessionPty(ChanRequest<'g, 'a>),
/// The SSH session is no longer running
#[allow(unused)]
Defunct,
}

Expand Down Expand Up @@ -504,6 +507,7 @@ pub(crate) enum ServEventId {
SessionShell,
SessionExec,
SessionPty,
#[allow(unused)]
Defunct,

// TODO:
Expand Down
4 changes: 2 additions & 2 deletions testing/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ if [ -z "$OFFLINE" ]; then
fi

# stable
cargo test
# only test lib since some examples are broken
cargo test --lib
# build non-testing, will be no_std
cargo build
cargo doc
Expand All @@ -37,7 +38,6 @@ cargo test --doc
cd async
# only test lib since some examples are broken
cargo test --lib
cargo test --lib
cargo build --example sunsetc
# with/without release to test debug_assertions
cargo build --release --example sunsetc
Expand Down

0 comments on commit e3b82d9

Please sign in to comment.