Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed Jan 22, 2024
1 parent dd14fd1 commit 05b5486
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/bookmarks/bookmark_processor.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use std::{collections::HashSet, error::Error, io::Write, rc::Rc};

use crate::{
errors::BogrepError, html, Action, Caching, Fetch, SourceType, TargetBookmark, TargetBookmarks,
};
use chrono::Utc;
use futures::{stream, StreamExt};
use log::{debug, trace, warn};
use parking_lot::Mutex;
use std::{collections::HashSet, error::Error, io::Write, rc::Rc};

#[derive(Debug)]

Check warning on line 10 in src/bookmarks/bookmark_processor.rs

View check run for this annotation

Codecov / codecov/patch

src/bookmarks/bookmark_processor.rs#L10

Added line #L10 was not covered by tests
pub struct BookmarkProcessor<C: Caching, F: Fetch> {
Expand Down
3 changes: 1 addition & 2 deletions src/cmd/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ fn add_urls(

#[cfg(test)]
mod tests {
use url::Url;

use super::*;
use crate::{json, JsonBookmarks};
use std::io::{Cursor, Write};
use url::Url;

#[test]
fn test_add_urls() {
Expand Down
3 changes: 1 addition & 2 deletions src/cmd/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,10 @@ pub async fn fetch_diff(config: &Config, args: FetchArgs) -> Result<(), BogrepEr

#[cfg(test)]
mod tests {
use url::Url;

use super::*;
use crate::{MockCache, MockClient, UnderlyingType};
use std::collections::HashMap;
use url::Url;

#[tokio::test]
async fn test_fetch_and_add_all_mode_html() {
Expand Down
3 changes: 1 addition & 2 deletions src/cmd/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,13 @@ async fn init_bookmarks(

#[cfg(test)]
mod tests {
use url::Url;

use super::*;
use crate::{bookmarks::RawSource, MockCache, MockClient};
use std::{
collections::{HashMap, HashSet},
path::Path,
};
use url::Url;

#[tokio::test]
async fn test_init_bookmarks_mode_html() {
Expand Down

0 comments on commit 05b5486

Please sign in to comment.