partial-borrow 1.0.1

Partially borrow a struct
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Copyright 2021 Ian Jackson and contributors
# SPDX-License-Identifier: GPL-3.0-or-later
# There is NO WARRANTY.
set -e
. ${0%/*}/../common.sh

# Checks that argument.rs corresponds to blank.rs.

argument/argument-to-blank argument/argument.rs argument/argument.rs.reblanked

cd argument

diff -u blank.rs argument.rs.reblanked

echo 'blank.rs and argument.rs correspond, OK.'