diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2121effc0..e8f6d6e24 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,5 +1,9 @@ name: Run Checks -on: [push] +on: + push: + branches: + - main + pull_request: jobs: checks: diff --git a/crates/lib/src/executable.rs b/crates/lib/src/executable.rs index 5e8603df4..357b54820 100644 --- a/crates/lib/src/executable.rs +++ b/crates/lib/src/executable.rs @@ -701,7 +701,7 @@ impl From for Error { ExecutionError::Unexpected(inner) => Self::Unexpected(format!("{inner:?}")), ExecutionError::Quilc { .. } => Self::Connection(Service::Quilc), ExecutionError::QcsClient(v) => Self::Unexpected(format!("{v:?}")), - ExecutionError::IsaError(v) => Self::Unexpected(format!("{v:?}")), + ExecutionError::Isa(v) => Self::Unexpected(format!("{v:?}")), ExecutionError::ReadoutParse(v) => Self::Unexpected(format!("{v:?}")), ExecutionError::Quil(e) => Self::Quil(e), ExecutionError::ToQuil(e) => Self::ToQuil(e), @@ -709,7 +709,7 @@ impl From for Error { ExecutionError::RewriteArithmetic(e) => Self::RewriteArithmetic(e), ExecutionError::RpcqClient(e) => Self::Unexpected(format!("{e:?}")), ExecutionError::Substitution(message) => Self::Substitution(message), - ExecutionError::QpuApiError(e) => Self::QpuApiError(e), + ExecutionError::QpuApi(e) => Self::QpuApiError(e), } } } diff --git a/crates/lib/src/lib.rs b/crates/lib/src/lib.rs index 42e5e289a..f8c0ffae3 100644 --- a/crates/lib/src/lib.rs +++ b/crates/lib/src/lib.rs @@ -30,7 +30,6 @@ path_statements, patterns_in_fns_without_body, pointer_structural_match, - private_in_public, semicolon_in_expressions_from_macros, trivial_casts, trivial_numeric_casts, diff --git a/crates/lib/src/qpu/execution.rs b/crates/lib/src/qpu/execution.rs index 886dcbe22..406002f53 100644 --- a/crates/lib/src/qpu/execution.rs +++ b/crates/lib/src/qpu/execution.rs @@ -52,7 +52,7 @@ pub(crate) enum Error { #[error("Problem using QCS API: {0}")] QcsClient(#[from] GrpcClientError), #[error("Problem fetching ISA: {0}")] - IsaError(#[from] GetIsaError), + Isa(#[from] GetIsaError), #[error("Problem parsing memory readout: {0}")] ReadoutParse(#[from] MemoryReferenceParseError), #[error("Problem when compiling program: {details}")] @@ -64,7 +64,7 @@ pub(crate) enum Error { #[error("Program when getting substitutions for program: {0}")] Substitution(String), #[error("Problem making a request to the QPU: {0}")] - QpuApiError(#[from] super::api::QpuApiError), + QpuApi(#[from] super::api::QpuApiError), } impl From for Error {