diff --git a/src/traft/error.rs b/src/traft/error.rs
index 2f68a00fdf537309b0d3fd0460799aa6cb8bd50f..2bc8bf3d407e7ae8993e2954d08af13890a743c4 100644
--- a/src/traft/error.rs
+++ b/src/traft/error.rs
@@ -29,7 +29,7 @@ pub enum Error {
     Tarantool(#[from] ::tarantool::error::Error),
     #[error("peer with id {0} not found")]
     NoPeerWithRaftId(RaftId),
-    #[error(r#"peer with id "{0}" not found"#)]
+    #[error("peer with id {0:?} not found")]
     NoPeerWithInstanceId(InstanceId),
     #[error("other error: {0}")]
     Other(Box<dyn std::error::Error>),
diff --git a/src/traft/storage.rs b/src/traft/storage.rs
index 6c3b46b45581294b1ca8f12fb680d1120466d85b..0e5cc739a6515c4eb1b468e083db238ed33aa6ca 100644
--- a/src/traft/storage.rs
+++ b/src/traft/storage.rs
@@ -388,12 +388,14 @@ macro_rules! define_peer_fields {
             $(
                 /// Helper struct that represents
                 #[doc = stringify!($name)]
-                /// field of `Peer`.
+                /// field of [`Peer`].
                 ///
                 /// It's rust type is
                 #[doc = concat!("`", stringify!($ty), "`")]
                 /// and it's tarantool type is
                 #[doc = concat!("`", stringify!($tt_ty), "`")]
+                ///
+                /// [`Peer`]: crate::traft::Peer
                 pub struct $field;
 
                 impl PeerFieldDef for $field {