Skip to content

Commit 66cc0e0

Browse files
committed
chore: fix lint errors
1 parent b1fe7f4 commit 66cc0e0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/ecosystems/ruby.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ pub struct HttpRubyGemsClient {
3636
base_url: String,
3737
}
3838

39+
impl Default for HttpRubyGemsClient {
40+
fn default() -> Self {
41+
Self::new()
42+
}
43+
}
44+
3945
impl HttpRubyGemsClient {
4046
const DEFAULT_BASE_URL: &'static str = "https://rubygems.org/api/v1/gems";
4147

@@ -84,6 +90,12 @@ pub struct RubyDiscoverer<F: RubyGemsFetcher> {
8490
fetcher: F,
8591
}
8692

93+
impl Default for RubyDiscoverer<HttpRubyGemsClient> {
94+
fn default() -> Self {
95+
Self::new()
96+
}
97+
}
98+
8799
impl RubyDiscoverer<HttpRubyGemsClient> {
88100
pub fn new() -> Self {
89101
Self {
@@ -162,7 +174,7 @@ fn read_gemfile_lock(project_root: &Path) -> Result<Vec<String>, RubyDiscoveryEr
162174
if !line.starts_with(' ') && !line.starts_with('\t') {
163175
break;
164176
}
165-
if let Some(name) = line.trim().split_whitespace().next() {
177+
if let Some(name) = line.split_whitespace().next() {
166178
if let Some(normalized) = normalize_dependency_name(name) {
167179
names.push(normalized);
168180
}

0 commit comments

Comments
 (0)