Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: address clippy 0.1.53 warnings #621

Merged
merged 1 commit into from
Jun 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions crates/rover-client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use uuid::Uuid;
///
/// If the user is offline and the schema already exists in the file system, the script does nothing.
///
/// The URL to fetch the schema can be overriden with the APOLLO_GPAPHQL_SCHEMA_URL environment variable.
/// The URL to fetch the schema can be overridden with the APOLLO_GPAPHQL_SCHEMA_URL environment variable.
///
/// Note: eprintln! statements only show up with `cargo build -vv`
fn main() -> std::io::Result<()> {
Expand All @@ -37,7 +37,6 @@ fn main() -> std::io::Result<()> {
if should_update_schema {
if !(etag_path.exists()) {
eprintln!(".schema/etag.id doesn't exist");
update_schema(&client, &schema_url)
} else {
eprintln!(".schema/etag.id already exists");
let current_etag = String::from_utf8(read(etag_path)?).unwrap();
Expand All @@ -57,9 +56,8 @@ fn main() -> std::io::Result<()> {
return Ok(());
}
}

update_schema(&client, &schema_url)
}
update_schema(&client, &schema_url)
} else {
Ok(())
}
Expand Down