Skip to content

Commit

Permalink
Fix sdk lints
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Dec 8, 2023
1 parent 83e2add commit 54c31a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/ci-build/sdk-lints/src/lib_rs_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
* SPDX-License-Identifier: Apache-2.0
*/

use std::path::{Path, PathBuf};

use crate::all_runtime_crates;
use crate::anchor::replace_anchor;
use crate::lint::{Check, Fix, Lint, LintError};
use std::path::{Path, PathBuf};
use crate::lint::{Fix, Lint, LintError};

/// Manages a standard set of `#![crate_level]` attributes
pub(super) struct StandardizedRuntimeCrateLibRsAttributes;
Expand Down Expand Up @@ -43,7 +44,7 @@ impl Fix for StandardizedRuntimeCrateLibRsAttributes {
// Find the end of the license header
if let Some(pos) = contents.find("*/") {
let newline = contents[pos..]
.find("\n")
.find('\n')
.ok_or(anyhow::Error::msg("couldn't find a newline"))?
+ 1
+ pos;
Expand Down

0 comments on commit 54c31a2

Please sign in to comment.