<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/safelog/src/lib.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-07-15T18:30:16Z</updated>
<entry>
<title>Merge branch 'remove-lint' into 'main'</title>
<updated>2026-07-15T18:30:16Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-07-15T18:30:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b1e6787b0bb05b8fe1f8b87716f1bd2b478eb602'/>
<id>urn:sha1:b1e6787b0bb05b8fe1f8b87716f1bd2b478eb602</id>
<content type='text'>
Removed unnecessary lint

Closes #2556

See merge request tpo/core/arti!4210</content>
</entry>
<entry>
<title>add_warning: add reference to arti#2556</title>
<updated>2026-07-15T17:56:49Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-07-15T17:56:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6d333d6e6f0bf4d75fdc81e8865e06f6537d5af6'/>
<id>urn:sha1:6d333d6e6f0bf4d75fdc81e8865e06f6537d5af6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unnecessary lint</title>
<updated>2026-07-15T17:16:51Z</updated>
<author>
<name>pryty26</name>
<email>238962075+pryty26@users.noreply.github.com</email>
</author>
<published>2026-07-15T17:07:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d12e408c1d62f29e58647c91a2714c49e3004cc4'/>
<id>urn:sha1:d12e408c1d62f29e58647c91a2714c49e3004cc4</id>
<content type='text'>
Removed unnecessary lint
</content>
</entry>
<entry>
<title>safelog: Fix clippy warnings</title>
<updated>2026-07-10T14:03:16Z</updated>
<author>
<name>hjrgrn</name>
<email>3874-hjrgrn@gitlab.torproject.org</email>
</author>
<published>2026-07-10T14:01:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8c2d7ec8fa8a9b7b74730ced6d70fc2dc917de77'/>
<id>urn:sha1:8c2d7ec8fa8a9b7b74730ced6d70fc2dc917de77</id>
<content type='text'>
</content>
</entry>
<entry>
<title>safelog: Define redaction helpers to avoid string slicing.</title>
<updated>2026-06-10T16:25:35Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-06-10T16:20:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e46e1297ada7c33d6e4634b4b074130dcc185e29'/>
<id>urn:sha1:e46e1297ada7c33d6e4634b4b074130dcc185e29</id>
<content type='text'>
(Several of our remaining string slicing instances are for
redaction, and it makes sense to have a single tested implementation
for this.)
</content>
</entry>
<entry>
<title>maint: Run maint/add_warning to deny string slices</title>
<updated>2026-06-09T15:36:01Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T15:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9f5752a77fb57052c06ead0eeae606831f1e8e97'/>
<id>urn:sha1:9f5752a77fb57052c06ead0eeae606831f1e8e97</id>
<content type='text'>
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.

I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.

This commit makes cargo clippy fail.  We will add exceptions in the next
commit.
</content>
</entry>
<entry>
<title>safelog: Add new MaybeSensitive::map() function</title>
<updated>2026-04-23T14:45:29Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-04-23T09:31:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=90d3da6c8480346c5a541ab867f1041481f05bab'/>
<id>urn:sha1:90d3da6c8480346c5a541ab867f1041481f05bab</id>
<content type='text'>
This is analogous to `Option::map()`, and can be useful when you need to
map the inner type of a `MaybeSensitive` to another type.
</content>
</entry>
<entry>
<title>safelog: Rename MaybeSensitive::hidden/visible()</title>
<updated>2026-03-03T15:51:33Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-03T14:04:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a52785b3f48f867c8986cb7b8ff6923c73a2652'/>
<id>urn:sha1:4a52785b3f48f867c8986cb7b8ff6923c73a2652</id>
<content type='text'>
Rename them to respectively sensitive() and not_sensitive().

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>safelog: Add MaybeSensitive struct</title>
<updated>2026-03-03T15:51:33Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-02-25T15:39:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=501ba52b79814425958176948610f863df3ee0e0'/>
<id>urn:sha1:501ba52b79814425958176948610f863df3ee0e0</id>
<content type='text'>
This is meant to be like MaybeRedacted but for the Sensitive&lt;&gt;
container.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>Allow clippy::collapsible_if to trigger</title>
<updated>2026-02-16T15:22:24Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-02-09T11:49:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ade1d59e8e44c93b6ee447b72a2948a9652ec44e'/>
<id>urn:sha1:ade1d59e8e44c93b6ee447b72a2948a9652ec44e</id>
<content type='text'>
`clippy::collapsible_if` started triggering after bumping the MSRV to
1.88.

Since this triggers from a lot of places, and since there even are a
couple of instances where we explicitly allow `clippy::collapsible_ifs`,
I've opened #2342 for deciding what to do about it.
</content>
</entry>
</feed>
