chore(docs): remove unnecessary crate:: prefix
crate:: prefix was being unnecessarily used when importing Archive in several doctests
This commit is contained in:
parent
c42a808878
commit
1c66676994
|
@ -20,7 +20,7 @@ impl Archive {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```
|
/// ```
|
||||||
/// # use crate::client::archive::Archive;
|
/// # use client::archive::Archive;
|
||||||
/// let archive_res = Archive::try_default();
|
/// let archive_res = Archive::try_default();
|
||||||
/// ```
|
/// ```
|
||||||
pub fn try_default() -> Result<Self, ProjectDirError> {
|
pub fn try_default() -> Result<Self, ProjectDirError> {
|
||||||
|
@ -45,7 +45,7 @@ impl Archive {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```
|
/// ```
|
||||||
/// # use crate::client::archive::Archive;
|
/// # use client::archive::Archive;
|
||||||
/// let archive = Archive::new("/home/user/.local/share/save-sync", "/home/user/.config/save-sync");
|
/// let archive = Archive::new("/home/user/.local/share/save-sync", "/home/user/.config/save-sync");
|
||||||
/// ```
|
/// ```
|
||||||
pub fn new<P: AsRef<Path>>(data_root: P, config_root: P) -> Self {
|
pub fn new<P: AsRef<Path>>(data_root: P, config_root: P) -> Self {
|
||||||
|
@ -73,7 +73,7 @@ impl Archive {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```
|
/// ```
|
||||||
/// # use crate::client::archive::Archive;
|
/// # use client::archive::Archive;
|
||||||
/// let mut archive = Archive::try_default().unwrap();
|
/// let mut archive = Archive::try_default().unwrap();
|
||||||
/// let game_save_path = "/home/user/Documents/generic_company/generic_game/save_folder";
|
/// let game_save_path = "/home/user/Documents/generic_company/generic_game/save_folder";
|
||||||
/// match archive.track_game(game_save_path) {
|
/// match archive.track_game(game_save_path) {
|
||||||
|
@ -149,7 +149,7 @@ impl Archive {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```
|
/// ```
|
||||||
/// # use crate::client::archive::Archive;
|
/// # use client::archive::Archive;
|
||||||
/// let mut archive = Archive::try_default().unwrap();
|
/// let mut archive = Archive::try_default().unwrap();
|
||||||
/// let drop_res = archive.drop_game("/home/user/Documents/generic_company/generic_game/save_folder");
|
/// let drop_res = archive.drop_game("/home/user/Documents/generic_company/generic_game/save_folder");
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -170,7 +170,7 @@ impl Archive {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```
|
/// ```
|
||||||
/// # use crate::client::archive::Archive;
|
/// # use client::archive::Archive;
|
||||||
/// let mut archive = Archive::try_default().unwrap();
|
/// let mut archive = Archive::try_default().unwrap();
|
||||||
/// let drop_res = archive.drop_game("raging_loop");
|
/// let drop_res = archive.drop_game("raging_loop");
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in New Issue